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