Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Friday, April 4, 2008 9:35:28 AM(UTC)
scochard

Groups: Registered
Posts: 2


I'm trying to get a couple of the Lead dialogs to work. I copied the code from your documentation for one and it gives me a -1093 error  after DoModal.  The l_error.h file doesn't have a -1093 error in it.

 

Here's the code:

LDialogImageEffect dlg;

LDialogImageEffect::Initialize(0);

dlg.SetBitmap((LBitmapBase*)pLeadBitmap);

GAUSSIANBLURDLGPARAMS parms;

memset (&parms,0,sizeof(GAUSSIANBLURDLGPARAMS));

parms.uStructSize = sizeof(GAUSSIANBLURDLGPARAMS);

result = dlg.EnableCallBack(FALSE);

result = dlg.EnablePreview(TRUE);

result = dlg.EnableToolbar(TRUE);

result = dlg.SetGaussianBlurParams(&parms);

result = dlg.DoModalGaussianBlur(pView->m_hWnd);

//Get Info

result = dlg.GetGaussianBlurParams(&parms, sizeof(GAUSSIANBLURDLGPARAMS));

result = LDialogImageEffect::Free();

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, April 6, 2008 7:20:23 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

This error means 'LTDLGIMGEFX.DLL
is not loaded'. Did you load this DLL using the LoadLibraries function using the LT_DLGIMGEFX flag?
 
#3 Posted : Monday, April 7, 2008 12:03:24 PM(UTC)
scochard

Groups: Registered
Posts: 2


The file I have is named LTDlgImgEFX14n.dll

I'm loading it with:

nRet = LBase::LoadLibraries (LT_DLGIMGEFX);

The error code is "1".

After a bunch of inti code,  I call the L_DlgOpen method to bring up the Open dialog to load a graphic file.

nRet = L_DlgOpen( pView->m_hWnd,&OpenFileName,&FOParm );

The error code with this call is " -152", which is not defined in the Errors.h or the Return Codes in the LEAD documentation for the Class Library.

 

Here's all of the code:

L_INT nRet;

nRet = LBase::LoadLibraries (LT_DLGIMGEFX);

static BITMAPHANDLE Bitmap;

static OPENDLGPARAMS FOParm;

static SAVEDLGPARAMS FSParm;

static FILEINFO foFileInfo;

HWND hWndChild = NULL;

L_BOOL fLoadInfo;

L_BOOL fAutoProcess = TRUE;

static OPENFILENAME OpenFileName;

static L_BOOL bEnablePreview=TRUE;

memset(&FOParm, 0, sizeof(OPENDLGPARAMS));

memset(&OpenFileName, 0, sizeof(OPENFILENAME));

FOParm.uStructSize = sizeof(OPENDLGPARAMS);

FOParm.bShowLoadOptions = FALSE;

FOParm.bPreviewEnabled = TRUE;

FOParm.uDlgFlags = (DLG_OPEN_ENABLESIZING|

DLG_OPEN_SHOW_PREVIEW|

DLG_OPEN_USEFILESTAMP |

DLG_OPEN_SHOW_PROGRESSIVE |

DLG_OPEN_SHOW_MULTIPAGE |

DLG_OPEN_SHOW_DELPAGE |

DLG_OPEN_SHOW_LOADROTATED |

DLG_OPEN_SHOW_LOADCOMPRESSED |

DLG_OPEN_SHOW_LOADOPTIONS |

DLG_OPEN_SHOW_FILEINFO |

DLG_OPEN_SHOW_PDFOPTIONS |

DLG_OPEN_SHOW_RASTEROPTIONS |

DLG_OPEN_SHOW_VECTOROPTIONS |

DLG_OPEN_VIEWTOTALPAGES |

DLG_OPEN_LOADBITMAP);

fAutoProcess = FALSE;

DWORD nOpenIndex;

OpenFileName.lStructSize = sizeof(OPENFILENAME);

OpenFileName.hwndOwner = pView->m_hWnd;

OpenFileName.nFilterIndex = nOpenIndex;

OpenFileName.lpstrTitle = TEXT("Open a File");

//fLoadInfo = LBase::EnableLoadInfo(TRUE);

nRet = L_DlgOpen( pView->m_hWnd,&OpenFileName,&FOParm );

 

 

 
#4 Posted : Tuesday, April 8, 2008 5:40:10 AM(UTC)

Adam Boulad  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)


This
error means ERROR_DLG_NOTINITIATED, You did not initialize the dialogs. This error is defined in the Lterr.h file.


You should initialize the Dialogs before using them, use the L_DlgInit function.
 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.123 seconds.