|  | 
| Usint XTT in Extention DLL as static lib | 
| Post Reply   | 
| Author | |
| srana   Groupie     Joined: 15 May 2003 Location: India Status: Offline Points: 27 |  Post Options  Thanks(0)  Quote  Reply  Topic: Usint XTT in Extention DLL as static lib Posted: 22 July 2003 at 10:23am | 
| I want to use XTREME toolkit in a project. with all its reusable classes in an extention DLL. I am using only a handful of XTremne DLL classes. Specially CXTListCTrl and CXTCoolMenu. I tried to static link it in that ext. dll but can't suceed. Though i get to link it to lib with the following code but it does not show the XP style MENU.  I can't distribute the entire 1 MB XTreme DLL because of space constraint of Shareware. How can I use XTreme Toolkit as a static lib in an extention dll which will export only handfull of xtreme toolkit symbols.  //try these #defineXT_INIT_BY_REGULAR_DLL #define_XT_STATICLINK #include<xttoolkit.h> 
 classSCODEDLL_API CXTMenuXP : public CXTMenu { public: // DECLARE_DYNAMIC(CXTMenuXP); CXTMenuXP(); virtual ~CXTMenuXP(); }; classSCODEDLL_API CXTCoolMenuXP : public CXTCoolMenu { public: DECLARE_DYNAMIC(CXTCoolMenuXP); CXTCoolMenuXP(); virtual ~CXTCoolMenuXP(); }; 
 #include"stdafx.h" //headfile of simulated classes #include"xttoolkitlib.h" #ifdef_DEBUG #pragmacomment(lib, "XT3100LibDynStaticd.lib") #else #pragmacomment(lib, "XT3100LibDynStatic.lib") #endif CXTMenuXP::CXTMenuXP() : CXTMenu() { ; } CXTMenuXP::~CXTMenuXP() { ; } IMPLEMENT_DYNAMIC(CXTCoolMenuXP, CXTCoolMenu); CXTCoolMenuXP::CXTCoolMenuXP() : CXTCoolMenu() { ; } CXTCoolMenuXP::~CXTCoolMenuXP() { ; } | |
| Shrishail Rana | |
|  | |
| kstowell   Admin Group   Joined: 25 January 2003 Location: MIchigan, USA Status: Offline Points: 496 |  Post Options  Thanks(0)  Quote  Reply  Posted: 02 November 2003 at 3:12pm | 
| Hello, It might be easier to add those classes you want into your existing extension dll project rather than trying to link it in. Cheers, | |
|  | |
| 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 |