CString 的用法。
建了一个win32 application.
int main()
{
CString s = "This is a test";
return 0;
}
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
CString s = "This is a test";
return 0 ;
}
两种用法编译均能通过,链接时
Linking...
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
Debug/windows.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Creating browse info file...
windows.exe - 3 error(s), 0 warning(s)
晕啊,望高手指教。。。