ShowTemplateDlg Example for C++ 5.0 and later
ILEADRasterTwain * pltRasTwain;
CString strTemplateFile = TEXT("");
CFileDialog TemplateFile (FALSE, TEXT("ltt"), NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, TEXT("Template Files (*.ltt)|*.ltt|All Files (*.*)|*.*||"));
if (TemplateFile.DoModal() == IDOK)
{
strTemplateFile = TemplateFile.GetPathName();
short iRet = pltRasTwain->ShowTemplateDlg(strTemplateFile.AllocSysString());
if (iRet != 0)
MessageBox (TEXT("Error Showing Template File"));
}