User forums => Using Code::Blocks => Topic started by: monere on January 30, 2009, 10:05:14 pm

Title: Windows MCI Applications
Post by: monere on January 30, 2009, 10:05:14 pm

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.right - rect.left,

               rect.bottom -, TRUE);


Title: Re: Windows MCI Applications
Post by: stahta01 on January 30, 2009, 11:34:29 pm
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