Wie soll ich FormatMessage () in C ++ richtig verwenden?

Ohne : MFC ATL Wie kann ich FormatMessage()den Fehlertext für a HRESULTabrufen? 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);