Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this function to signal an error based on the result of the Windows function GetLastError.
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