cannot convert parameter 1 from 'const char [] ' to 'const wchar_t * '的解决方法
来源:互联网 发布:4行4列矩阵的值怎么求 编辑:程序博客网 时间:2024/06/05 16:35
CString a;
int b;
a.Format("%d", b);
出现cannot convert parameter 1 from 'const char [] ' to 'const wchar_t * '的错误
解决方法:
cannot
从这个看你可能采用了UNICODE编码,
可以用
a.Format(L "%d ",
或者
a.Format(_T( "%d "),
来自:http://blog.sina.com.cn/s/blog_616d3ec20100yeas.html
0 0
- cannot convert parameter 1 from 'const char [] ' to 'const wchar_t * '的解决方法
- cannot convert parameter 1 from 'const char [] ' to 'const wchar_t * '的解决方法
- cannot convert parameter 1 from 'const char [] ' to 'const wchar_t * '的解决方法
- vs2008下cannot convert parameter 1 from 'LPCTSTR' to 'const char *'的解决方法
- cannot convert parameter 1 from 'CString' to 'const char *'
- cannot convert parameter 1 from 'const char *' to 'LPCWSTR
- cannot convert parameter 1 from 'std::string' to 'const char *'
- VS2005下的 cannot convert parameter 1 from 'const char [5]' to 'LPCTSTR'错误解决
- 类型转换 -- 使用Unicode下的cannot convert parameter 1 from 'CString' to 'const char *' 解决办法
- 使用Unicode下的cannot convert parameter 1 from 'CString' to 'const char *' 解决办法
- cannot convert parameter 2 from 'const char[15]' to 'LPWSTR';
- 'strcpy' : cannot convert parameter 2 from 'LPCTSTR' to 'const char *'
- cannot convert parameter 2 from 'const char [12]' to 'LPCWSTR'
- cannot convert wchar_t to const char*
- E2034 Cannot convert 'wchar_t *' to 'const char *'
- 'strlen' : cannot convert parameter 1 from 'char [][80]' to 'const char *'
- 关于VS2005的error C2664: cannot convert parameter 2 from 'const char [2]' to 'LPCWSTR
- 错误1error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [17]' to 'LPCTST
- librt.so主要是glibc对real-time部分的支持
- mstsc 使用技巧
- android SQLite数据库操作
- asp.net 当前上下文不存在名称 XXX
- 关于Eclipse中import javax.servlet.*出错
- cannot convert parameter 1 from 'const char [] ' to 'const wchar_t * '的解决方法
- 如何让你开发的游戏赚钱
- Java技术丛书
- linux下编译器gcc/g++编译步骤
- 实现简单的搜索引擎
- Clang 与 GCC 编译器的简单比较
- C++Primer _vector _习题3.14
- Git使用总结
- 杭电2177