¿Cómo debo usar FormatMessage () correctamente en C ++?

Sin : MFC ATL ¿Cómo puedo usar FormatMessage()para obtener el texto de error de un 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); }...