我的hello world程序怎么通不过啊?
新建一个win32 application
#include <afxwin.h>
class myframe : public CFrameWnd
{public:
myframe()
{Create(NULL,"helloworld",WS_OVERLAPPEDWINDOW,rectDefault);}
};
class myapp : public CWinApp
{public :
virtual BOOL InitInstance();};
BOOL myapp::InitInstance()
{m_pMainWnd=new myframe();
m_pMainWnd->ShowWindow(m_nCmdShow);
return true;}
myapp p1;
编绎时报:
error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/s3.exe : fatal error LNK1120: 2 unresolved externals