CXTPListCtrl derived class |
Post Reply |
Author | |
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
Posted: 18 August 2021 at 5:24am |
Hi.
When I try to create a derived class: class CXTPListCtrl2 : public CXTPListCtrl { public: CXTPListCtrl2() {}; }; I get two link errors: ( I'm using 20.0 version ) 1>Controls2000vc160x64DSUD.lib(XTPListBase.obj) : error LNK2005: already defined "public: virtual void __cdecl CXTPListBase::SetExtendedStyle(unsigned long)" (?SetExtendedStyle@CXTPListBase@@UEAAXK@Z) en RecepcionDlg.obj 1>Controls2000vc160x64DSUD.lib(XTPListBase.obj) : error LNK2005: already defined "public: virtual unsigned long __cdecl CXTPListBase::GetExtendedStyle(void)" (?GetExtendedStyle@CXTPListBase@@UEAAKXZ) en RecepcionDlg.obj How can I fix it ? Thanks. |
|
angelsoriasanagustin
Groupie Joined: 16 September 2015 Location: Spain Status: Offline Points: 46 |
Post Options
Thanks(0)
|
Hello again.... The problem was static linking to XTControls and XTSkinFramework. If I undefined _XTP_STATICLINK, there is no error. #define _XTP_STATICLINK #include <XTControls.h> // Codejock Software Components #include <XTSkinFrameworkBundle.h> // Codejock Software Components How can I link statically to both libraries ? Thanks
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |