Programming Manual
48
API_LoadSettingsFromFile
Load scanner setting from file.
BOOL API_LoadSettingsFromFile
{
LPCTSTR
filename
}
Parameters
f
ilename
[in] the scanner setting file(*.axs)
Return Values
Return 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 5.0 and later.
Header:
scanapiax.h
Link Library:
scanapiax.lib
Link DLL:
scanapiax.dll
Device:
PT61