Author Topic: Windows MCI Applications  (Read 4662 times)

monere

  • Guest
Windows MCI Applications
« on: January 30, 2009, 10:05:14 pm »
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
« Last Edit: January 30, 2009, 10:26:39 pm by monere »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Windows MCI Applications
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org