【发布时间】:2010-10-02 02:38:41
【问题描述】:
没有:
- MFC
- ATL
如何使用FormatMessage() 获取HRESULT 的错误文本?
HRESULT hresult = application.CreateInstance("Excel.Application");
if (FAILED(hresult))
{
// what should i put here to obtain a human-readable
// description of the error?
exit (hresult);
}
【问题讨论】:
标签: c++ windows error-handling formatmessage