Click here to Skip to main content
15,918,404 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read files... Pin
Dana Epp26-Feb-03 6:30
Dana Epp26-Feb-03 6:30 
GeneralCOM and #import question ... Pin
Daniel Strigl26-Feb-03 3:57
Daniel Strigl26-Feb-03 3:57 
GeneralRe: COM and #import question ... Pin
peterchen26-Feb-03 4:04
peterchen26-Feb-03 4:04 
GeneralRe: COM and #import question ... Pin
Stephane Rodriguez.26-Feb-03 4:21
Stephane Rodriguez.26-Feb-03 4:21 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralRe: COM and #import question ... Pin
Stephane Rodriguez.26-Feb-03 4:20
Stephane Rodriguez.26-Feb-03 4:20 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralRe: COM and #import question ... Pin
Giles26-Feb-03 5:53
Giles26-Feb-03 5:53 
GeneralRe: COM and #import question ... Pin
Daniel Strigl26-Feb-03 20:11
Daniel Strigl26-Feb-03 20:11 
GeneralDebugging fun with assembly and user dumps Pin
mediamaster4026-Feb-03 3:19
mediamaster4026-Feb-03 3:19 
GeneralRe: Debugging fun with assembly and user dumps Pin
Tim Smith26-Feb-03 3:33
Tim Smith26-Feb-03 3:33 
GeneralRe: Debugging fun with assembly and user dumps Pin
mediamaster4026-Feb-03 4:05
mediamaster4026-Feb-03 4:05 
GeneralDrawing the caption of the property page (in a property sheet) in a different color... Pin
Joan M26-Feb-03 3:12
professionalJoan M26-Feb-03 3:12 
GeneralRe: Drawing the caption of the property page (in a property sheet) in a different color... Pin
Rage26-Feb-03 4:52
professionalRage26-Feb-03 4:52 
GeneralIt doesn't helped, but thank you... Pin
Joan M26-Feb-03 5:00
professionalJoan M26-Feb-03 5:00 
GeneralList 2.0 checkbox and togglebutton Pin
bennyrascal26-Feb-03 3:12
bennyrascal26-Feb-03 3:12 
GeneralRe: List 2.0 checkbox and togglebutton Pin
Rage26-Feb-03 4:47
professionalRage26-Feb-03 4:47 
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

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.