Updated.
Try to QueryInterface
the failing object for the ISupportErrorInfo
interface, then call the InterfaceSupportsErrorInfo
method with the REFIID
of the interface throwing the exception. If it returns S_OK
, then just calls the GetErrorInfo function to get an IErrorInfo interface. Then use the GetDescription
method.