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, August 6, 2010 3:41:47 AM(UTC)

Siraj  
Siraj

Groups: Registered
Posts: 6


recently i have install LEADTOOL 17 trial version. i have made a separate application and use LFile::FileConvert method. The Project build successful but when i run it -2041 error code is generated at this line
nReturn = LFile::GetInfo(finfo, sizeof(FILEINFO),FILEINFO_TOTALPAGES, NULL);. Although i have included the required .lib and .dll files in my projects. Any one help me in this regard.
thanks
 

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 : Friday, August 6, 2010 3:49:49 AM(UTC)

Siraj  
Siraj

Groups: Registered
Posts: 6


recently i have install LEADTOOL 17 trial version. i have made a separate application and use LFile::GetInfo and LFile::FileConvert method. The Project build successful but when i run it -2041 error code is generated at this line
nReturn = LFile::GetInfo(finfo, sizeof(FILEINFO),FILEINFO_TOTALPAGES, NULL);. Although i have included the required .lib and .dll files in my projects. Any one help me in this regard.
thanks
 
#3 Posted : Sunday, August 8, 2010 1:00:22 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

To resolve the problem, try to call the LBase::LoadLibraries(LT_ALL_LEADLIB) method before calling any LEADTOOLS functions.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#4 Posted : Sunday, August 8, 2010 7:54:54 PM(UTC)

Siraj  
Siraj

Groups: Registered
Posts: 6


Maen Hasan @....Thanks a lot for your kind reply. I have included the line "LBase::LoadLibraries(LT_ALL_LEADLIB)" in my code. The dll not loaded error is finished, but another i.e. -9 is generated. please help me in fixing this problem. My code is that,
//////////////////////////////////////////////////////////
L_INT nReturn = 0;
static FILEINFO FileInfo;
memset(&FileInfo, 0, sizeof(FILEINFO));
FileInfo.uStructSize = sizeof(FILEINFO);
LOADFILEOPTION pLoadFile;
pLOADFILEOPTION pLoad;
SAVEFILEOPTION pSaveFile;
memset(&pSaveFile, 0, sizeof(SAVEFILEOPTION));
pSaveFile.uStructSize = sizeof(SAVEFILEOPTION);
memset(&pLoadFile, 0, sizeof(LOADFILEOPTION));
pLoadFile.uStructSize = sizeof(LOADFILEOPTION);
pSAVEFILEOPTION pSave;
pSave = &pSaveFile;
pLoad = & pLoadFile;
pFILEINFO finfo;
finfo = & FileInfo;
LFile LeadFile =NULL ;
L_TCHAR* InPutPath = TEXT("C:\\WorkSpaceAndStructures.rtf");
CString OutPut = _T("C:\\BUST\\WorkSpaceAndStructures%d");
LBase::LoadLibraries(LT_ALL_LEADLIB);
LeadFile.SetFileName(InPutPath);
nReturn = LeadFile.GetInfo(finfo, sizeof(FILEINFO),FILEINFO_TOTALPAGES, NULL);
for(L_INT page =1; page <= FileInfo.TotalPages; page++)
{
pLoadFile.PageNumber = page;
OutPut.Format(OutPut, page);
OutPut = OutPut+".jpg";
LPTSTR lpszData = new TCHAR[OutPut.GetLength()+1];
_tcscpy(lpszData , OutPut);
L_TCHAR* OutPutPath=lpszData;
nReturn= LeadFile.FileConvert(OutPutPath, InPutPath ,FILE_JPEG,0,0,24,QMS,pLoad,pSave,finfo);
delete[] lpszData;
}


//////////////////////////////////////////////////////////
the code is generated at
nReturn = LeadFile.GetInfo(finfo, sizeof(FILEINFO),FILEINFO_TOTALPAGES, NULL); and
nReturn= LeadFile.FileConvert(OutPutPath, InPutPath ,FILE_JPEG,0,0,24,QMS,pLoad,pSave,finfo);
Please help me


Thanks
 
#5 Posted : Monday, August 9, 2010 4:57:22 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

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


This question is not related to your original issue. I saw that you have already opened a new forum post. Please continue discussing this issue on that forum.
 
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.141 seconds.