Share via


Debugging and Error Reporting Global Functions

These functions provide useful debugging and trace facilities.

AtlHresultFromLastError

Returns a GetLastError error code in the form of an HRESULT.

AtlHresultFromWin32

Converts a Win32 error code into an HRESULT.

AtlReportError

Sets up IErrorInfo to provide error details to a client.

AtlThrow

Throws a CAtlException.

AtlThrowLastWin32

Call this function to signal an error based on the result of the Windows function GetLastError.

AtlTraceLoadSettings

Call this function to load trace settings from a file.

AtlTraceSaveSettings

Call this function to save the current trace settings to a file.

See Also

Other Resources

ATL Functions

Debugging and Error Reporting Macros