Results 1 to 3 of 3

Thread: InitCommonControlsEx()

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    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?

  2. #2
    amac
    Guest
    Are you linking in comctl32.lib?

  3. #3
    amac
    Guest
    If I had to guess that's what I would say is the problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width