GetLastError

The GetLastError method gets the error string for the last error that has occurred. It is called after a method call returns an error. The returned error string is usually the actual IDL error message, if IDL generated the error message.

Syntax

HRESULT GetLastError([out,retval] BSTR* LastError)

Return Value

The error string for the last error that occurred.