Api_loadsettingsfromfile, Api_loadsettingfromfile – Argox PT-9130 User Manual

Page 196

Advertising
background image

PT-90 Mobile Computer SDK Programming Manual 189

API_LoadSettingsFromFile

To Load scanner settings from file.

BOOL API_LoadSettingsFromFile

{

LPCTSTR

filename

}

Parameters

filename

[in] the scanner setting file(*.axs)

Returned Values

Returning TRUE if the operation is successful, otherwise, return FALSE.

Example

CString strFile;

CFileDialog dlg(TRUE, NULL, NULL, OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST);

if(dlg.DoModal() != IDOK)

return;

strFile = dlg.GetPathName();

if(theApp.m_API_LoadSettingsFromFile(strFile))

AfxMessageBox(_T("Load form file Succeed"));

else

AfxMessageBox(_T("Load from file Fail"));

Requirements

OS Versions: Windows CE 6.0 or beyond.

Header: scanapiax.h

Link Library: scanapiax.lib

Link DLL: scanapiax.dll
Device: PT90

Advertising