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

  • Post author:
  • Post category:其他


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

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



版权声明:本文为ApecF原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。