怎样使用编译选项来消除这个编译时的类型错误?
djfu 2005-05-23 09:21:35 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