-
February 21st, 2010, 01:27 PM
#1
Wont compile
I have winmain app:
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
these headers are included:
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <time.h>
#include <cstdlib>
#include "resource.h"
and I have this error:
Error 1 error LNK2019: unresolved external symbol __imp__InitCommonControls@0 referenced in function "int __stdcall DlgProc(struct HWND__ *,unsigned int,unsigned int,long)" (?DlgProc@@YGHPAUHWND__@@IIJ@Z) main.obj project9
-
February 21st, 2010, 01:31 PM
#2
Re: Wont compile
Add comctl32.lib to your linker libs.
-
February 21st, 2010, 01:31 PM
#3
Re: Wont compile
And I forgot to say Im using MSVC++ 2008 and I think code is ok but some linker/compiler setting needs adjustment.
-
February 21st, 2010, 01:44 PM
#4
Re: Wont compile
Thread solved in 5 minutes.
You are the best!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|