Como devo usar FormatMessage () corretamente em C ++?

Sem : MFC ATL Como posso usar FormatMessage()para obter o texto de erro de um 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); }...