控制檯程式中使用CString
阿新 • • 發佈:2019-01-03
1、更改project->setting->C/C++->Code Generation,選擇Debug MulitiThreaded
2、新增標頭檔案:
#include <afx.h> 或 #include<afxwin.h>
新增標頭檔案<afxwin.h>時,如果也包含了<windows.h>,則要求<afxwin.h>在<windows.h>之前包含,否則出錯。
1、更改project->setting->C/C++->Code Generation,選擇Debug MulitiThreaded
2、新增標頭檔案:
#include <afx.h> 或 #include<afxwin.h>
新增標頭檔案<afxwin.h>時,如果也包含了<windows.h>,則要求<afxwin.h>在<windows.h>之前包含,否則出錯。