Function
Retrieves the error string from the error code.
Format
Ret = CntGetErrorString ( ErrorCode , ErrorString )
Parameters
ErrorCode
[ C: long ] [ Python: ctypes.c_long ]
Specifies the return value of each function.
ErrorString
[ C: char * ] [ Python: ctypes.c_char_p ]
Specifies the base address of the buffer to store the error string. The
maximum length of the string is 256 characters.
Return Value
Ret [ C: long ] [ Python: ctypes.c_long ]
Definition |
Value |
Description |
CNT_ERR_SUCCESS |
0 |
Normal Complete |
CNT_ERR_DLL_BUFF_ADDRESS |
10101 |
Invalid data buffer address. |
The other errors: (See also: Details of Error Code)
Initial Value
None
Remarks
It's a utility function which returns the string which can be understand for the error code. Please use this function in the error processing.
Example
C |
Ret
= CntGetErrorString(ErrorCode, &ErrorString[0]); |
Python |
Ret
= ccnt.CntGetErrorString(ErrorCode, ErrorString) |
See Also
None