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.