【FAQ】LPCTSTR与const char*(STL字符)之间的转换

【问题】LPCTSTR与const char*(STL字符集)如何转换

cannot convert parameter 1 from 'LPCTSTR' to 'const char *'

 

【答案】VS IDE下只需要修改字符集

项目--属性--配置属性--字符集 改为使用多字节

 

posted @ 2022-12-27 18:16  dlut_耀辉  阅读(24)  评论(0)    收藏  举报