Api_geterror – Argox PT-9130 User Manual

Page 193

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 186

API_GetError

To Get the error code.

DWORD API_GetError

{

}

Parameters

None

Returned Values

The returned value can be one of those in the table below:

Constant

Value

Description

ERR_WRITE_FAIL

WM_USER+1 Send commands to scanner module failed.

ERR_SETTING_FAIL

WM_USER+2 Set scanner setting failed.

ERR_SCANNER_NOT_OPEN WM_USER+3 Open scanner module failed.

ERR_INVALID_FILE

WM_USER+4 Invalid setting file.

Example

dwError = API_GetError();

strMess.Format(_T("API Error Code: %d"), dwError);

AfxMessageBox(strMess);

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: scanapiax.h

Link Library: scanapiax.lib

Link DLL: scanapiax.dll
Device: PT90

Advertising