书上的例子,语句有错.
catch(_com_error e)
{
CString str;
str=e.ErrorMessage;
str="1"+str;
AfxMessageBox(str);
}
error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'const char *(__thiscall _com_error::*)(void) const' (or there is no acceptable conversion)
Error executing cl.exe.