error LNK2001: unresolved external symbol __imp__InitCommonControls@0
I was trying to compile the source of the text editor at winprog.org, but this happened. Can anyone please tell me what it is and how I can fix it?
Printable View
error LNK2001: unresolved external symbol __imp__InitCommonControls@0
I was trying to compile the source of the text editor at winprog.org, but this happened. Can anyone please tell me what it is and how I can fix it?
Try in the CPP file:
#include <commctrl.h>
and be sure to add commctrl.lib in the project settings...
good luck!
what you should do is go to file->new, select win32 application, then create a new c/c++ source file. Paste the code from winprog into this file. then compile. This works for me.
Ok jop, I did that, but now I get:
LINK : fatal error LNK1104: cannot open file "commctrl.lib"
So, I still don't know what to do.
Sail, that is what I am (was) doing, but it still won't work.
Do have commctrl.lib listed in your linked library list?
I searched my hard drive and there doesn't seem to be a commctrl.lib file....
Ahhh.....I see, there is only one m in the name. Its called comctrl.lib.
I searched, I don't have a comctrl.lib file either.
Here ya go