error C2664: 'int CListCtrl::InsertColumn(int,LPCTSTR,int,int,int)' : cannot convert parameter 2 from 'const char [7]' to 'LPCTS

来源:互联网 发布:ipad2软件下载 编辑:程序博客网 时间:2024/05/19 23:53

  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

这个错误...解决.是重新生成解决方案即可. 

原创粉丝点击