在win32application中
加入#include <afx.h>
编译通过,链接时就有
 error LNK2019: 未解決的外部符号 __beginthreadex 函数 "public: int __thiscall CWinThread::CreateThread(unsigned long,unsigned int,struct _SECURITY_ATTRIBUTES *)" (?CreateThread@CWinThread@@QAEHKIPAU_SECURITY_ATTRIBUTES@@@Z) 参照
error LNK2019: 未解決的外部符号 __endthreadex 函数 "void __stdcall AfxEndThread(unsigned int,int)" (?AfxEndThread@@YGXIH@Z) 参照。
fatal error LNK1120: 外部参照 2个未解決。
这是什么原因,怎么解决?