Print Page | Close Window

Usint XTT in Extention DLL as static lib

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=104
Printed Date: 15 May 2024 at 2:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Usint XTT in Extention DLL as static lib
Posted By: srana
Subject: Usint XTT in Extention DLL as static lib
Date 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

#define XT_INIT_BY_REGULAR_DLL

#define _XT_STATICLINK

#include <xttoolkit.h>

 

class SCODEDLL_API CXTMenuXP : public CXTMenu

{

public:

// DECLARE_DYNAMIC(CXTMenuXP);

CXTMenuXP();

virtual ~CXTMenuXP();

};

class SCODEDLL_API CXTCoolMenuXP : public CXTCoolMenu

{

public:

DECLARE_DYNAMIC(CXTCoolMenuXP);

CXTCoolMenuXP();

virtual ~CXTCoolMenuXP();

};

 

#include "stdafx.h"

//headfile of simulated classes

#include "xttoolkitlib.h"

#ifdef _DEBUG

#pragma comment(lib, "XT3100LibDynStaticd.lib")

#else

#pragma comment(lib, "XT3100LibDynStatic.lib")

#endif

CXTMenuXP::CXTMenuXP() : CXTMenu()

{

;

}

CXTMenuXP::~CXTMenuXP()

{

;

}

IMPLEMENT_DYNAMIC(CXTCoolMenuXP, CXTCoolMenu);

CXTCoolMenuXP::CXTCoolMenuXP() : CXTCoolMenu()

{

;

}

CXTCoolMenuXP::~CXTCoolMenuXP()

{

;

}



-------------

Shrishail Rana



Replies:
Posted By: kstowell
Date 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,
Codejock Support.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net