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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b]commctrl.h VC10 64bit[\b] 1

Status
Not open for further replies.

gismo

Technical User
Jul 24, 2002
35
US
I have a C program that compiles fine in 32 bit but when I try and compile in 64 bit I get the error: error LNK2019: unresolved external symbol __imp_InitCommonControls referenced in function ProgressBar. I've included windows.h and commctrl.h. In the project \properties\VC++ Directories\Include directories, I've tried to add C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include to the inherited values which is where commstrl.h resides. What am I doing wrong?
 
That is a linking error - adding extra includes won't solve it. It needs comctl32.lib in the link.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top