GetListCtrl().InsertColumn(0,"Delta-time",LVCFMT_LEFT,100);
GetListCtrl().InsertColumn(1,"Channel",LVCFMT_LEFT,100);
GetListCtrl().InsertColumn(2,"Event",LVCFMT_LEFT,300);
GetListCtrl().InsertColumn(3,"Propetry",LVCFMT_LEFT,1000);
会出现error C2664: 'int CListCtrl::InsertColumn(int,LPCTSTR,int,int,int)' : cannot convert parameter 2 from 'const char [7]' to 'LPCTSTR'
错误..
是字符集未正确设置引起的错误. 解决: 项目-App属性-配置属性-常规-字符集-(未设置、使用 Unicode 字符集、使用多字节字符集) 改变字符集为未设置
然后执行没有那个错误又有了general error c101008a: Failed to save the updated manifest to the file "./Debug/JXSYS.exe.embed.manifest". Bpcn mt.exe
这个错误...解决.是重新生成解决方案即可.
本文介绍了解决C++项目中因字符集设置不当导致的编译错误的方法,包括调整字符集设置以及如何避免生成解决方案时出现的manifest文件保存错误。
2万+

被折叠的 条评论
为什么被折叠?



