This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Common Control problem

Hi I am trying use common controls in my EVM3503 CE 6.0 R3. Whem I add the code for create a comand bar it give an error:

#include <commctrl.h>

.........

INITCOMMONCONTROLSEX iCcsex;

InitCommonControls();
    iCcsex.dwSize = sizeof(INITCOMMONCONTROLSEX);
    iCcsex.dwICC = ICC_WIN95_CLASSES;
    InitCommonControlsEx(&iCcsex);
    hwndCB = CommandBar_Create(hInst, hWnd, IDC_CMBAR);

the error is:

error LNK2019: unresolved external symbol CommandBar_Create referenced in function ...

error LNK2019: unresolved external symbol InitCommonControlsEx referenced in function ....

error LNK2019: unresolved external symbol InitCommonControls referenced in function...


Why it is happen? How can I solve this?

 

Thanks