'CListCtrl' : missing storage-class or type specifiers问题

edenliuL edenliuL 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我程序里面用到一个common模块 里面是一些要用的函数,在其他程序上用没问题,但是在这次的使用上就出现问题了
我首先把错误信息发下:
e:\c++\xmlser\common\commonfun.h(428) : error C2146: syntax error : missing ';' before identifier 'listctrl'
e:\c++\xmlser\common\commonfun.h(428) : error C2501: 'CListCtrl' : missing storage-class or type specifiers
e:\c++\xmlser\common\commonfun.h(428) : error C2501: 'listctrl' : missing storage-class or type specifiers
e:\c++\xmlser\common\commonfun.h(452) : error C2146: syntax error : missing ';' before identifier 'LoadSysStr'
e:\c++\xmlser\common\commonfun.h(452) : error C2501: 'CString' : missing storage-class or type specifiers
e:\c++\xmlser\common\commonfun.h(452) : fatal error C1004: unexpected end of file found
对应第一个错误的代码是:
struct SortData
{
CListCtrl* listctrl; //CListCtrl控件指针就是这里啦!!
int isub; //l列号
int seq; //1为升序,0为降序
};
头文件包含在里面呀 怎么CListCtrl和CString都不能用了呢 ?
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
edenliuL
VC/MFC 16,551 成员 421,605 内容