The GetLastErrorCAD function returns the last error code and sets the error message.
Syntax:
int GetLastErrorCAD(
LPCSTR lpBuf,
DWORD nSize
);
Parameters:
lpBuf |
Points to the buffer for an error message. If this parameter is NULL, no error message is retrieved. |
nSize |
Specifies size of the buffer for an error message. |
Return Value:
The return value is an error-code corresponding to one of the following error messages:
•ERROR_CAD_GENERAL
•ERROR_CAD_INVALID_HANDLE
•ERROR_CAD_INVALID_INDEX
•ERROR_CAD_FILE_NOT_FOUND
•ERROR_CAD_INVALID_CADDRAW
•ERROR_CAD_FILE_READ
•ERROR_CAD_UNSUPFORMAT_FILE
•ERROR_CAD_OUTOFRESOURCES
Note:
If lpBuf is not NULL, the specified buffer contains the corresponding error message as a null-terminated string.
See Also
© 2003-2024 CADSoftTools
Go to CAD DLL