Argox pt-80 Mode D'Emploi

Page de 76
 
API_SaveSettingsToFile 
Save current scanner settings to file. The extension file name is “axs”. 
BOOL API_SaveSettingsToFile 
    LPCTSTR 
filename
 
}  
 
Parameters 
 
 
filename 
 
 
 
[in] the file name for the setting file. 
 
Return Values 
 
 
Return TRUE if the operation is successful, otherwise return FALSE. 
 
 
Example 
 
CString strFile; 
 
CfileDialog dlg(FALSE, _T("axs"), NULL, OFN_CREATEPROMPT, _T("Scanner Settings Files (*.axs) |*.axs || 
")); 
 
 
if(dlg.DoModal() != IDOK) 
   return; 
 
 strFile 
dlg.GetPathName(); 
 if(API_SaveSettingsToFile(strFile)) 
 
 
AfxMessageBox(_T("Save to file Succeed")); 
 else 
 
 
AfxMessageBox(_T("Save to file Fail")); 
 
Requirements 
 
 
OS Versions: Windows CE 4.2 and later. 
 
 
Header: scanapiax.h 
 
 
Link Library: scanapiax.lib 
Link DLL: scanapiax.dll 
Device: PT80
 
Programming Manual                                                                                            44