CException, e;
char ErrorStr[1024];
e->GetErrorMessage(ErrorStr,1024);
编译错误信息如下;
GetErrorMessage' : cannot convert parameter 1 from 'char [1024]' to 'unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
char ErrorStr[1024];
e->GetErrorMessage(ErrorStr,1024);
编译错误信息如下;
GetErrorMessage' : cannot convert parameter 1 from 'char [1024]' to 'unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
解决方案 »
- MFC列表控件进行添加删除房间数据,求W高手指点下
- Cycle length was tested to be 2**32中两个星号什么意思?
- 内核编程 关于build命令怎么用啊 格式
- 我用mfc cstring 读去sql2000数据库 的text 为什么只能读去 255个字符 用的是的odbc 连接?
- 关于CSocketFile的使用问题,谢谢大家帮忙看下~
- 绘图刷新的问题
- 资源管理器
- 通过ODBC不同程序中的两个CRecordset对象访问sQl server 中的同一个表,出错
- 【200分求助】基于UDP协议的可靠的电子邮件传输系统!
- 类中创建的线程与类外创建的线程在维护上有什莫区别?
- 开发工具选择的问题
- 关于direct show 和direct music部分问题
CString testStr;
testStr.Format("%s", s);error C2664: 'void __cdecl CString::Format(const unsigned short *,...)' : cannot convert parameter 1 from 'char [3]' to 'const unsigned short *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast