Plasma Engine  2.0
Loading...
Searching...
No Matches
plArgErrorCode Struct Reference

Converts a windows HRESULT into an error code and a human-readable error message. Pass in GetLastError() function or an HRESULT from another error source. Be careful when printing multiple values, a function could clear GetLastError as a side-effect so it is best to store it in a temp variable before printing a complex error message. More...

#include <FormatStringArgs.h>

Public Member Functions

 plArgErrorCode (plUInt32 uiErrorCode)
 

Public Attributes

plUInt32 m_ErrorCode
 

Detailed Description

Converts a windows HRESULT into an error code and a human-readable error message. Pass in GetLastError() function or an HRESULT from another error source. Be careful when printing multiple values, a function could clear GetLastError as a side-effect so it is best to store it in a temp variable before printing a complex error message.

See also
https://learn.microsoft.com/en-gb/windows/win32/api/errhandlingapi/nf-errhandlingapi-getlasterror

The documentation for this struct was generated from the following file: