GetErrorInfo Method - neoVI API
This method returns a text description of an neoVI API error number.
int _stdcall icsneoGetErrorInfo(int lErrorNumber,
TCHAR *szErrorDescriptionShort,
TCHAR *szErrorDescriptionLong,
int *lMaxLengthShort,
int *lMaxLengthLong,
int *lErrorSeverity,
int *lRestartNeeded);Public Declare Function icsneoGetErrorInfo Lib "icsneo40.dll" _
(ByVal lErrorNumber As Int32, _
ByVal sErrorDescriptionShort As String, _
ByVal sErrorDescriptionLong As String, _
ByRef lMaxLengthShort As Int32, _
ByRef lMaxLengthLong As Int32, _
ByRef lErrorSeverity As Int32, _
ByRef lRestartNeeded As Int32) As Int32[DllImport("icsneo40.dll")]
public static extern int icsneoGetErrorInfo(int iErrorNumber,
StringBuilder sErrorDescriptionShort,
StringBuilder sErrorDescriptionLong,
ref int iMaxLengthShort,
ref int iMaxLengthLong,
ref int lErrorSeverity ,
ref int lRestartNeeded);Parameters
lErrorNumber [in] This is the number of the error message returned from GetErrorMessages. A separate topic describes the possible values for error messages.
sErrorDescriptionShort [out] This is short description of the error. This parameter should be sized to include up to 255 characters including the NULL terminator.
sErrorDescriptionLong [out] This is longer more detailed description of the error. This parameter should be sized to include up to 255 characters including the NULL terminator. lMaxLengthShort [in] This is the size in characters of the sErrorDescriptionShort array that is being passed in. This value must be 255 or less. lMaxLengthLong [in] This is the size in characters of the sErrorDescriptionLong array that is being passed in. This value must be 255 or less.
lErrorSeverity [out] This indicates the error severity. This is estimated severity for the application and doesn't have significant meaning. See Table 1 below for more information.
lRestartNeeded [out] If 1 it is recommend that the application close communications with the DLL and reopen it.
Return Values
If the error number was found successfully the return value will be non-zero.
Remarks
None.
Table 1 - Descriptions of Error Severity
const unsigned long icsspyErrCritical=0x10;
A critical error which affects operation or accuracy
const unsigned long icsspyErrExclamation=0x30;
An important error which may be critical depending on the application.
const unsigned long icsspyErrInformation=0x40;
An error which probably does not need attention.
const unsigned long icsspyErrQuestion=0x20;
An error which is not understood.
Examples
Last updated