Original Post
Hi, I am trying to use some of the common control classes in Visual C++. Here's the code:
The problem is, the program is always exiting code 1, meaning that InitCommonControlsEx() failed.
I REALLY don't know why this is happening, as I #included, linked with ComCtl32.lib, and the "Modules" tab says that the linker had loaded the symbols.
Funny thing, is that in the list of .dll files that are loaded in the Modules tab, comctl32.dll is listed twice - and if i don't add the .lib in the linker, I get unresolved external symbols.
So, if anybody knows what i'm doing wrong, any help would be appreciated.
INITCOMMONCONTROLSEX icexControls;
icexControls.dwSize = sizeof(icexControls);
icexControls.dwICC = ICC_STANDARD_CLASSES;
if (InitCommonControlsEx(&icexControls) != TRUE) {
exit(1);
}
The problem is, the program is always exiting code 1, meaning that InitCommonControlsEx() failed.
I REALLY don't know why this is happening, as I #included
Funny thing, is that in the list of .dll files that are loaded in the Modules tab, comctl32.dll is listed twice - and if i don't add the .lib in the linker, I get unresolved external symbols.
So, if anybody knows what i'm doing wrong, any help would be appreciated.