Link Error/Resource file/VC++6 |
Post Reply |
Author | |
s_rookie
Newbie Joined: 23 May 2005 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 24 May 2005 at 1:00pm |
Pls Guide me i have problem in compiling.
/*When i build the following project i get a link error which says """Compiling resources... Compiling... file1.cpp Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/myproject1.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. myproject1.exe - 3 error(s), 0 warning(s)""" */ #include<afxwin.h> class myframe:public CFrameWnd { public: myframe() { Create(0,"Hello"); } void OnLButtonDown(UINT i,CPoint p) { char c[100]; sprintf(c,"p.x=%d p.y=%d",p.x,p.y); ::MessageBox(0,c,"ln OnLButtonDown()",0); } DECLARE_MESSAGE_MAP() }; BEGIN_MESSAGE_MAP(myframe,CFrameWnd) ON_WM_LBUTTONDOWN() END_MESSAGE_MAP() class mywin:public CWinApp { public: BOOL InitInstance() { myframe *my; my= new myframe; my->ShowWindow(3); m_pMainWnd=my; return TRUE; } }; mywin a; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ resource.h is in the project folder but doesnt get displayed in the workspace. Pls Guide me : |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |