我有VC中的WIN32 Application新建了一个空工程,然后编写了一个简单的hello.cpp文件, 文件的内容如下: //hello.cpp #include <afxwin.h> class CHelloFrame:public CFrameWnd { public: CHelloFrame() {Create(NULL,"Hello world!",WS_OVERLAPPEDWINDOW,rectDefault);} }; class CHelloApp:public CWinApp {public: virtual BOOL InitInstance(); }; BOOL CHelloApp::InitInstance() {m_pMainWnd=new CHelloFrame(); m_pMainWnd->ShowWindow(m_nCmdShow); m_pMainWnd->UpdateWindow(); return TRUE; } CHelloApp HelloApp; 将它加入到这个空的工程中,通过了编译,但是在联结的时候出现了问题: Compiling... hello.cpp Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/hello.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe.
hello.exe - 3 error(s), 0 warning(s) 请问是哪里出了问题呢,请各位大侠帮忙!!!!!我真的找不出问题出在哪里,谢谢!谢谢!