breve documentacion de ayuda sobre los errores

This commit is contained in:
Ernesto Abarca 2019-05-17 14:35:21 +00:00
parent 1ec9020545
commit 3aff8c08ed
1 changed files with 26 additions and 0 deletions

View File

@ -139,6 +139,32 @@ namespace LectorVerdnatura
{
clector.GetLastError(ref idwErrorCode);
if (idwErrorCode != 0)
/*
Obtenido de: www.digitalfarsi.com/files/22112014163844.pdf
2.61 GetLastError
[Function]
Get last error number.
[Protocol]
BOOL GetLastError(long FAR* dwErrorCode);
[Paramters]
dwErrorCode: The returned error number
Value Description
1 SUCCESSED
4 ERR_INVALID_PARAM
0 ERR_NO_DATA
-1 ERROR_NOT_INIT
-2 ERROR_IO
-3 ERROR_SIZE
-4 ERROR_NO_SPACE
-100 ERROR_UNSUPPORT
[Return]
TRUE if success, FALSE else.
[Notes]
dwErrorCode = 6 caused by calling Method GetGeneralLogData, and GetAllGLogData.
If them return FALSE, please call GetLastError to determine if there is error or read over data.
*/
logevent.logeventwritefile("ErrorCode: " + idwErrorCode.ToString());
retorno = false;
else