Jak prawidłowo używać FormatMessage () w C ++?

Bez : MFC ATL Jak mogę użyć, FormatMessage()aby uzyskać tekst błędu dla 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); }...