bigfatcat 发表于 2014-9-26 07:55:33

vs2013 多字节字符集编译错误

如题:
错误代码if (lpFilePath != NULL)
                {
                        _stprintf_s(lpFilePath, _T("\"%s\""), szFilePath);
                        _tcscpy(szFilePath, lpFilePath);
                        delete[]lpFilePath;
                }错误信息
错误        1        error C2664: “int sprintf_s(char *,size_t,const char *,...)”: 无法将参数 2 从“const char ”转换为“size_t        2        IntelliSense:没有与参数列表匹配的 重载函数 "sprintf_s" 实例
            参数类型为:(TCHAR *, const char , TCHAR )       


大个的糖果 发表于 2014-11-1 02:33:12

页: [1]
查看完整版本: vs2013 多字节字符集编译错误