Though I've found a little bit of discussion about this issue online, nothing I've seen has solved the problem.
Basically the debugger is stopping at
and saying it doesn't recognize the 'function' INITCOMMONCONTROLSEX. But it should be in <commctrl.h>, correct?
One suggestion I've seen is to go into the commctrl.h file and change some code. But where would you find this file? A search of all files (I'm using CodeBlocks) yields nothing.
I've checked in the Build options and found that comctl32 is included under the list of Link libraries. If that is relevant.
This is all pretty standard stuff, just included it in case there is something obvious I'm not catching here.
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
char szWinName= "MyWin";
int WINAPI WinMain (HINSTANCE hThisInstance,
wcl.cbSize = sizeof (WNDCLASSEX);
wcl.hInstance = hThisInstance;
wcl.lpszClassName = szWinName;
wcl.lpfnWndProc = WindowProcedure;
wcl.style = CS_DBLCLKS;
wcl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wcl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
wcl.hCursor = LoadCursor (NULL, IDC_ARROW);
wcl.lpszMenuName = NULL;
wcl.cbClsExtra = 0;
wcl.cbWndExtra = 0;
wcl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
if (!RegisterClassEx (&wcl))
hwnd = CreateWindowEx (
"Basic Tab Controls Demo",
ShowWindow (hwnd, nWinMode);
while (GetMessage (&messages, NULL, 0, 0))
/* Send message to WindowProcedure */
Thanks for any suggestions.