Personal488 User's Manual For Windows 95 and Windows NT
API Command Reference 69
GetError
Syntax
ErrorCodeT WINAPI GetError(DevHandleT devHandle, LPSTR
errText);
devHandle
refers to either the IEEE 488 interface or the external device that has the
associated error.
errText
is the string that will contain the error message. If
errText
is non-null, the
string must contain at least 247 bytes.
Returns
-1
if error
otherwise, it returns the error code number associated with the error for the specified device.
Mode
Any
Bus States
None
Example
errnum = GetError(ieee,errText);
printf(“Error number:%d;%s \n”errnum,errText);
See Also
Error, GetErrorList, Status
The
GetError
command is user-called after another function returns an error indication. The device
handle sent to the function that returned the error indication is sent to
GetError
as its
devHandle
parameter.
GetError
finds the error associated with that device and returns the error code associated
with that error. If a non-null error text pointer is passed,
GetError
also fills in up to 247 bytes in the
string. The application must ensure that sufficient space is available.
Summary of Contents for OMB-PER-488/W95
Page 1: ......
Page 4: ...ii Personal488 User s Manual For Windows 95 and Windows NT Notes...
Page 38: ...32 Personal488 with GP488B Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 52: ...46 Driver488 W95 Driver488 WNT Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 136: ...130 Appendix Personal488 User s Manual For Windows95 and Windows NT Notes...
Page 139: ...Personal488 User s Manual For Windows 95 and Windows NT Index 133 Notes...
Page 142: ...136 Abbreviations Personal488 User s Manual For Windows95 and Windows NT Notes...