Compartir a través de


AtlThrowLastWin32

 

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

Syntax

inline void AtlThrowLastWin32( );

Remarks

This function traces the result of GetLastError to the debugger.

If _ATL_NO_EXCEPTIONS is not defined in an MFC project, this function throws a CMemoryException or a COleException based on the value returned by GetLastError.

If _ATL_NO_EXCEPTIONS is not defined in an ATL project, the function throws a CAtlException.

If _ATL_NO_EXCEPTIONS is defined, the function causes an assertion failure instead of throwing an exception.

Requirements

Header: atldef.h

See Also

Debugging and Error Reporting Global Functions
ATLTRACE2
AtlThrow
GetLastError