L I B R A R Y F U N C T I O N S
Data Device Corporation
SB-3624XIX-3L0 Manual
www.ddc-web.com
Rev D -10/15
54
int WINAPI Get_Last_Error (char *ErrorMsg)
DESCRIPTION
This routine returns the last error that occurred, and clears the error code to 0. Can be called
frequently, if needed.
INPUT DATA
ErrorMsg
A char pointer that will hold the last error message.
RETURNED DATA
ErrorMsg
A int that represents the last error message.
Table 14. ErrorMsg Values
Values
Description
0
No Error
1
Could not open registry
2
Card Type is invalid
3
Card no initialized
4
Invalid direction
5
Could not open device
6
Cound not close device
7
Invalid channel
8
Invalid option
9
Invalid range
10
Missing parameters
11
Invalid error code
EXAMPLE CODE
Code
Result/Returned Data
Get_Last_Error(char *ErrorMsg)
No Error
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com