Comment utiliser FormatMessage () correctement en C ++?

Sans : MFC ATL Comment puis-je utiliser FormatMessage()pour obtenir le texte d'erreur pour 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); }...