Tag: formatmessage

我应该如何在C ++中正确使用FormatMessage()?

没有 : 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); }