Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Usint XTT in Extention DLL as static lib
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Usint XTT in Extention DLL as static lib

 Post Reply Post Reply
Author
Message
srana View Drop Down
Groupie
Groupie
Avatar

Joined: 15 May 2003
Location: India
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote srana Quote  Post ReplyReply Direct Link To This Post 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

#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
Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.