HandleError()
{
USES_CONVERSION;
CComPtr<IErrorInfo> pError;
CComBSTR bstrError;
GetErrorinfo(0, &pError);
pError->GetDescription(&bstrError);
MessageBox(OLE2T(bstrError), _T("Error"), MB_ICONEXCLAMATION);
}
HandleError()
{
USES_CONVERSION;
CComPtr<IErrorInfo> pError;
CComBSTR bstrError;
GetErrorinfo(0, &pError);
pError->GetDescription(&bstrError);
MessageBox(OLE2T(bstrError), _T("Error"), MB_ICONEXCLAMATION);
}