LTwain::TemplateDlg

Summary

Displays the TWAIN source manufacturer's template dialog, without actually acquiring an image.

Syntax

#include "ltwrappr.h"

virtual L_INT LTwain::TemplateDlg (lpszTemplateFile)

Parameters

L_TCHAR * lpszTemplateFile

A character string that contains the name of the template file used in the saving the capability values.

Returns

Value Meaning
SUCCESS The function was successful.
<1 An error occurred. Refer to Return Codes.

Comments

This function saves the current values of all the supported capabilities to the specified file.

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT CMyTwain::SaveCapCallBack(pTW_CAPABILITY pCapability) 
{ 
   UNREFERENCED_PARAMETER(pCapability); 
 
   // Do pre operations on data to save 
 
   return SUCCESS;  
} 
 
L_INT CMyTwain::SaveErrorCallBack(pTW_CAPABILITY pCapability, L_UINT uError) 
{ 
   UNREFERENCED_PARAMETER(pCapability); 
   UNREFERENCED_PARAMETER(uError); 
 
 
   // Do the error handling 
 
   return SUCCESS;  
 
} 
 
L_INT LTwain__TemplateDlgExample(L_TCHAR * pszFileName, CMyTwain *MyClass) 
 
{ 
   L_INT nRet; 
 
   MyClass->EnableCallBack (TRUE); 
 
   nRet = MyClass->TemplateDlg (pszFileName); 
 
   if (nRet != SUCCESS)  
 
   { 
 
      // Error check procedure 
 
      return nRet; 
 
   } 
 
   return SUCCESS; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.