News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Windows MCI Applications

Started by monere, January 30, 2009, 10:05:14 PM

Previous topic - Next topic

monere

Hello,

I am trying to compile a windows MCI ( Microsoft Controls Interface)  code under c++, like this Sample code below:
I am relatively new to Codeblocks IDE.
My questions are:

a. What compiler and target  should i use? I start with file, new, project..settings ... (my project file name  is : MCI_EX).
b. What compiler  settings and project settings are the most appropriate for this type of programming.

Note: i tried  using the win32 GUI compiler  but it does not compile my MCI coded files, it  indicates: " Nothing to be done" and  "Target is up to date"
The win32 compiler compiles the project file with some codes generating an MCI_EX.exe file, but does not compile my MCI  files similar to the sample code  below.                   
                                                 "SAMPLE CODE"

#include <windows.h>

#include <vfw.h>

void SetClientRect(HWND hwnd, HWND hwndMCI)

{

    RECT rect;

    GetWindowRect(hwndMCI, &rect);

    AdjustWindowRectEx(&rect, GetWindowLong(hwnd, GWL_STYLE),

                       FALSE, GetWindowLong(hwnd, GWL_EXSTYLE));

    MoveWindow(hwnd, rect.left, rect.top, rect.right - rect.left,

               rect.bottom - rect.top, TRUE);

}

Thanks
Monere

stahta01

PLEASE state the name of the Compiler you are using?
The words "win32 GUI compiler" can apply to several hundred compilers!!
Note: Do you have an Compiler Installed?
If yes, please state the path to the Compiler!!!

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]