一个简单问题,在一个Win32 applicaion 中如何使用CString变量! 在线等待!

suk 2003-06-16 04:54:09
如果加入头文件#include <afx.h>就会出现以下错误!
#error WINDOWS.H already included. MFC apps must not #include <windows.h>
怎么样才能在win32 application 中使用CSting变量呢??
...全文
38 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
comfile 2003-06-16
  • 打赏
  • 举报
回复
你在其他地方有没有include<afx*.h>后者windows.h
laolaoliu2002 2003-06-16
  • 打赏
  • 举报
回复
#include <afx.h>
common_man 2003-06-16
  • 打赏
  • 举报
回复
在stdafx.h中:
//#include <windows.h>
#include <afx.h>

然后设置:
"project" -> "setting" ->"General"->"Use MFC in a static Library"

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧