在调试c++程序时,出现错误提示:
1.error C2065: 'CString' : undeclared identifier或
2.nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
处理办法:
1.检查是否包含头文件afx.h
2.打开project->settings->general->microsoft foundation classes->
选use MFC in a static library
或选 use MFC in a shared DLL(需要把MFC的动态库放在system32文件夹下) .

 

#include <afx.h>//CString结构的头文件afx.h

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-05
  • 2021-10-11
  • 2021-08-24
猜你喜欢
  • 2022-12-23
  • 2022-01-21
  • 2021-12-16
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案