LEADTOOLS Support
Imaging
Imaging SDK Questions
ILEADRasterDlgFile not displaying (Error Code = ERROR_DLG_NOTINITIATED)
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, November 8, 2006 7:59:04 AM(UTC)
Groups: Registered
Posts: 15
I am trying to replace my CFileDiaog with the ILEADRasterDlgFile but I keep getting ERROR_DLG_NOTINITIATED as a return code. Below is the code I used to set up the object. Any help would be greatly appreciated.
Thanks,
jp
--------------------------------- Sample Code
#import
<ltrdf14n.dll> no_namespace, named_guids
ILEADRasterDlgFile * m_pRasterFileDlg;
HRESULT hr = CoCreateInstance(CLSID_LEADRasterDlgFile,
NULL,
CLSCTX_ALL,
IID_ILEADRasterDlgFile,
(void**)&m_pRasterFileDlg);
if(FAILED(hr))
{
return FALSE;
}
m_pRasterFileDlg->EnableMethodErrors = FALSE;
m_pRasterFileDlg->PutFilter("");
m_pRasterFileDlg->PutFileDlgFlags(0);
m_pRasterFileDlg->PutFileName("");
m_pRasterFileDlg->PutDialogTitle("Open Stamp File");
m_pRasterFileDlg->PutUIFlags(OPEN_SHOW_MULTIPAGE |
OPEN_SHOW_PREVIEW |
OPEN_USEFILESTAMP |
OPEN_SHOW_FILEINFO |
OPEN_SHOW_LOADOPTIONS |
OPEN_SHOW_LOADCOMPRESSED |
OPEN_SHOW_LOADROTATED |
OPEN_SHOW_DELPAGE |
OPEN_SHOW_PDFOPTIONS |
OPEN_SHOW_RASTEROPTIONS |
OPEN_SHOW_VECTOROPTIONS |
OPEN_VIEWTOTALPAGES |
OPEN_ENABLESIZING);
int nRet = m_pRasterFileDlg->ShowOpenDlg((long)this->m_hWnd);
if ((nRet == 0) && (m_pRasterFileDlg->GetDialogStatus() == /*DLG_OK*/100))
{
LoadFile(m_pRasterFileDlg->GetFileName());
}
#2
Posted
:
Thursday, November 9, 2006 10:53:30 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Jon Paul,
At the beginning of your program, you need to initialize the dialogs using the InitDlg method of LEADRasterDlgKrn object.
At the termination of your program, call the FreeDlg method.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
ILEADRasterDlgFile not displaying (Error Code = ERROR_DLG_NOTINITIATED)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.