Click here to Skip to main content
15,905,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List 2.0 checkbox and togglebutton Pin
bennyrascal26-Feb-03 8:26
bennyrascal26-Feb-03 8:26 
Generalsetup the COleCurrency format Pin
Willem B26-Feb-03 3:02
Willem B26-Feb-03 3:02 
GeneralRe: setup the COleCurrency format Pin
Rage26-Feb-03 4:42
professionalRage26-Feb-03 4:42 
GeneralRe: setup the COleCurrency format Pin
RobJones26-Feb-03 5:13
RobJones26-Feb-03 5:13 
GeneralRe: setup the COleCurrency format Pin
Willem B26-Feb-03 21:11
Willem B26-Feb-03 21:11 
GeneralRe: setup the COleCurrency format Pin
RobJones28-Feb-03 3:14
RobJones28-Feb-03 3:14 
GeneralRe: setup the COleCurrency format Pin
willempipi28-Feb-03 3:20
willempipi28-Feb-03 3:20 
GeneralExport problem from a DLL Pin
Raphael Kindt26-Feb-03 3:01
Raphael Kindt26-Feb-03 3:01 
I'm trying to export a template class from a DLL...
For this, I use AFX_EXT_CLASS.
I observe (with a DLL viewer) that a template class can't be export from a DLL but a simple class well... Is this normal? A solution?
Here is some of my header code:
A simple class... : the class is exported, OK
class AFX_EXT_CLASS FIFO  
{
public:
	enum tagBUFFER_STATUS{ FREE = 0x00, BUSY = 0x01 };
	struct tagARRAY {
		int _buf;
		tagBUFFER_STATUS _sts;
	};
	DWORD In(int& value);
	DWORD Out(int& value);

	FIFO();
	virtual ~FIFO();

private:
	 tagARRAY _array[10];
	 int _itr;
	 int _itw;
};

A template class... : the class is not exported, KO
template<class T, int Size>
class AFX_EXT_CLASS FIFO  
{
public:
	enum tagBUFFER_STATUS{ FREE = 0x00, BUSY = 0x01 };
	struct tagARRAY {
		int _buf;
		tagBUFFER_STATUS _sts;
	};
	DWORD In(T& value);
	DWORD Out(T& value);

	FIFO();
	virtual ~FIFO();

private:
	 tagARRAY _array[Size];
	 int _itr;
	 int _itw;
};

My question: how to export a template class from a DLL?
Thanks for your help...

Hello World!!! Smile | :)
from Raphaël
GeneralRe: Export problem from a DLL Pin
Hans Ruck26-Feb-03 3:40
Hans Ruck26-Feb-03 3:40 
GeneralRe: Export problem from a DLL Pin
Raphael Kindt26-Feb-03 3:50
Raphael Kindt26-Feb-03 3:50 
GeneralRe: Export problem from a DLL Pin
Hans Ruck26-Feb-03 4:17
Hans Ruck26-Feb-03 4:17 
GeneralRe: Export problem from a DLL Pin
Raphael Kindt26-Feb-03 6:23
Raphael Kindt26-Feb-03 6:23 
Generalfiles!!! Pin
Dennis L26-Feb-03 2:31
Dennis L26-Feb-03 2:31 
GeneralRe: files!!! Pin
Hans Ruck26-Feb-03 2:48
Hans Ruck26-Feb-03 2:48 
GeneralRe: files!!!...Thanks Pin
Dennis L26-Feb-03 4:39
Dennis L26-Feb-03 4:39 
GeneralUI thread Pin
Gary Kirkham26-Feb-03 2:26
Gary Kirkham26-Feb-03 2:26 
GeneralRe: UI thread Pin
Hesham Amin26-Feb-03 2:43
Hesham Amin26-Feb-03 2:43 
GeneralPostThreadMessage Pin
AlexO26-Feb-03 2:50
AlexO26-Feb-03 2:50 
General95/98/... best and worst Pin
includeh1026-Feb-03 2:23
includeh1026-Feb-03 2:23 
GeneralRe: 95/98/... best and worst Pin
AlexO26-Feb-03 2:48
AlexO26-Feb-03 2:48 
GeneralRe: 95/98/... best and worst Pin
Willem B26-Feb-03 2:57
Willem B26-Feb-03 2:57 
GeneralRe: 95/98/... best and worst Pin
AlexO26-Feb-03 3:02
AlexO26-Feb-03 3:02 
GeneralRe: 95/98/... best and worst Pin
Hans Ruck26-Feb-03 2:58
Hans Ruck26-Feb-03 2:58 
GeneralNew window Pin
jeremysay26-Feb-03 2:15
jeremysay26-Feb-03 2:15 
GeneralCreate a WinZip file and is there a way to prevent winzip from reading it Pin
SPGV26-Feb-03 2:00
SPGV26-Feb-03 2:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.