-
InitCommonControlsEx()
I am attempting to use the Status Bar control.
I get the following error on the code below.
Code:
#include <commctrl.h>
INITCOMMONCONTROLSEX initCtl;
initCtl.dwICC = ICC_BAR_CLASSES;
initCtl.dwSize = sizeof(INITCOMMONCONTROLSEX);
InitCommonControlsEx(&initCtl);
--------------------Configuration: _default - Win32 Debug--------------------
Compiling resources...
Compiling...
winMain.cpp
Linking...
winMain.obj : error LNK2001: unresolved external symbol __imp__InitCommonControlsEx@4
Debug/_default.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
_default.exe - 2 error(s), 0 warning(s)
What is the problem?
-
Are you linking in comctl32.lib?
-
If I had to guess that's what I would say is the problem