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 : Tuesday, August 14, 2012 9:55:43 PM(UTC)
leonlihkust

Groups: Registered
Posts: 12


Currently I'm using VS 2010, leadtools 17 and c++ for development.
When I'm trying to add a new leadtools object in VS, a error occurred as "need design time license".
I have seen your solution for this problem and tried to uninstall and re-install leadtools 17 by register leadtools 17 file(.ocx). But it does not work.
Can you give a more detail solution towards this problem.
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 : Wednesday, August 15, 2012 4:39:22 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Leon,
This could be a problem of missing lic file. Do you have the ltocx.lic in the same folder that have ltocx.ocx? If not, please put the lic file next to the ltocx.ocx file.

 
#3 Posted : Thursday, August 16, 2012 12:10:53 AM(UTC)
leonlihkust

Groups: Registered
Posts: 12


It works and thanks so much as I has been headache with this problems for weeks.

 
#4 Posted : Thursday, August 16, 2012 5:30:05 PM(UTC)
leonlihkust

Groups: Registered
Posts: 12


One more question:
Same environment: VS 2010, leadtools 17 and c++.
As I convert my project from VC6.0 to VS 2010, these errors occur after compile.


1>Convert.obj : error LNK2001: unresolved external symbol "public: virtual struct CRuntimeClass * __thiscall CLEAD::GetRuntimeClass(void)const " (?GetRuntimeClass@CLEAD@@UBEPAUCRuntimeClass@@XZ)
1>Convert.obj : error LNK2019: unresolved external symbol "public: short __thiscall CLEAD::GetFileInfo(wchar_t const *,long,long)" (?GetFileInfo@CLEAD@@QAEFPB_WJJ@Z) referenced in function __catch$?LoadSourceImage@CConvertDlg@@QAEHPA_W@Z$0
1>Convert.obj : error LNK2019: unresolved external symbol "public: short __thiscall CLEAD::Load(wchar_t const *,short,long,long)" (?Load@CLEAD@@QAEFPB_WFJJ@Z) referenced in function "public: int __thiscall CConvertDlg::LoadSourceImage(wchar_t *)" (?LoadSourceImage@CConvertDlg@@QAEHPA_W@Z)
1>Convert.obj : error LNK2019: unresolved external symbol "public: short __thiscall CLEAD::Save(wchar_t const *,short,short,short,short)" (?Save@CLEAD@@QAEFPB_WFFFF@Z) referenced in function __catch$?ConvertImage@CConvertDlg@@QAEHPA_WHHPAUPhotoInfo@@H@Z$0
1>Convert.obj : error LNK2019: unresolved external symbol "public: short __thiscall CLEAD::Size(float,float,short)" (?Size@CLEAD@@QAEFMMF@Z) referenced in function "public: int __thiscall CConvertDlg::ConvertImage(wchar_t *,int,int,struct PhotoInfo *,int)" (?ConvertImage@CConvertDlg@@QAEHPA_WHHPAUPhotoInfo@@H@Z)
1>Convert.obj : error LNK2019: unresolved external symbol "public: short __thiscall CLEAD::GetInfoFormat(void)" (?GetInfoFormat@CLEAD@@QAEFXZ) referenced in function "public: int __thiscall CConvertDlg::ConvertImage(wchar_t *,int,int,struct PhotoInfo *,int)" (?ConvertImage@CConvertDlg@@QAEHPA_WHHPAUPhotoInfo@@H@Z)
1>Convert.obj : error LNK2019: unresolved external symbol "public: short __thiscall CLEAD::GetInfoBits(void)" (?GetInfoBits@CLEAD@@QAEFXZ) referenced in function "public: int __thiscall CConvertDlg::ConvertImage(wchar_t *,int,int,struct PhotoInfo *,int)" (?ConvertImage@CConvertDlg@@QAEHPA_WHHPAUPhotoInfo@@H@Z)
1>Convert.obj : error LNK2019: unresolved external symbol "public: float __thiscall CLEAD::GetInfoHeight(void)" (?GetInfoHeight@CLEAD@@QAEMXZ) referenced in function "public: int __thiscall CConvertDlg::ConvertImage(wchar_t *,int,int,struct PhotoInfo *,int)" (?ConvertImage@CConvertDlg@@QAEHPA_WHHPAUPhotoInfo@@H@Z)
1>Convert.obj : error LNK2019: unresolved external symbol "public: float __thiscall CLEAD::GetInfoWidth(void)" (?GetInfoWidth@CLEAD@@QAEMXZ) referenced in function "public: int __thiscall CConvertDlg::ConvertImage(wchar_t *,int,int,struct PhotoInfo *,int)" (?ConvertImage@CConvertDlg@@QAEHPA_WHHPAUPhotoInfo@@H@Z)
1>Convert.obj : error LNK2019: unresolved external symbol "public: short __thiscall CLEAD::LoadResize(wchar_t const *,float,float,short,short)" (?LoadResize@CLEAD@@QAEFPB_WMMFF@Z) referenced in function "public: int __thiscall CConvertDlg::ConvertImgFileByW_H(char *,char *,int,int,int)" (?ConvertImgFileByW_H@CConvertDlg@@QAEHPAD0HHH@Z)
1>Convert.obj : error LNK2019: unresolved external symbol "public: void __thiscall CLEAD::SetEnableMethodErrors(int)" (?SetEnableMethodErrors@CLEAD@@QAEXH@Z) referenced in function "protected: virtual int __thiscall CConvertDlg::OnInitDialog(void)" (?OnInitDialog@CConvertDlg@@MAEHXZ)
1>Convert.obj : error LNK2019: unresolved external symbol "public: void __thiscall CLEAD::SetScaleMode(short)" (?SetScaleMode@CLEAD@@QAEXF@Z) referenced in function "protected: virtual int __thiscall CConvertDlg::OnInitDialog(void)" (?OnInitDialog@CConvertDlg@@MAEHXZ)

Should I include some lib? A lead.h file is included right now and all the functions have been defined.
 
#5 Posted : Monday, August 20, 2012 5:15:11 AM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 366

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

Hello,

Since you're converting your project from VC 6.0 to VC 10.0, there isn't any way to know if all of the information the VC 6.0 compiler added into the header and CPP files are even in use by VC 10.0? It might be that the newer compiler needs incldues that weren't created originally, and that's the problem here.

The best thing to do here is likely to try adding the OCX to an empty 2010 project. Try and get that to compile and run with no issues.

Once that is working, make a copy of your original VC 6.0 project. It wouldn't be good to mess around with your original project. If something goes wrong in the conversion with a copy, you can always delete it and start over. With the copy though, you can then try compiling in 2010, and begin replacing the header and CPP files as needed from the new empty 2010 project over the older VC 6.0 generated files.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
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-2024, Yet Another Forum.NET
This page was generated in 0.090 seconds.