Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InitCommonControlsEx() Help

Status
Not open for further replies.

Valius

Programmer
Oct 20, 2000
174
US
I'm trying to use this so I can get the ListView control...but I keep getting:
unresolved external symbol _imp_InitCommonControlsEx@4.

I don't know why I keep getting this error...it doesn't make sense as to why I get it. This is what I have...in my headers I have included the <windows.h> and <commctrl.h>. I created my window and I have defined my INITCOMMONCONTROLSEX structure to pass to the InitCommonControlsEx function. Then I have InitCommonControlsEx(&ListViewerStruct);

That's pretty much it. If anybody has any ideas why I keep getting this, please let me know. I tried including the Commctrl.lib in the project settings, but it said it couldn't find the file...could this be a problem? Thanks for your time!

Niky Williams
NTS Marketing, Inc.
 
Found my problem...I was spelling it incorrectly..it's comctl32.lib, not commctl32.lib. After I put it in correctly it worked fine. It seems that I can answer my own questions after I write to this forum...maybe I otta write more to it... :)

Niky Williams
NTS Marketing, Inc.
 
put in Project->Settings->Link->ObjectLibrary modules the library comctl32.lib John Fill
1c.bmp


ivfmd@mail.md
 
Ya, finally figgured it out...thanks for helping me out anyway!

Niky Williams
NTS Marketing, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top