Click here to Skip to main content
15,920,005 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionClass Family Tree? Pin
VaporTrace18-Sep-05 10:20
VaporTrace18-Sep-05 10:20 
QuestionDunamic type converstion. Please help? Pin
LiquidE_SA18-Sep-05 1:17
LiquidE_SA18-Sep-05 1:17 
AnswerRe: Dunamic type converstion. Please help? Pin
VaporTrace18-Sep-05 10:52
VaporTrace18-Sep-05 10:52 
GeneralRe: Dunamic type converstion. Please help? Pin
LiquidE_SA18-Sep-05 11:15
LiquidE_SA18-Sep-05 11:15 
GeneralRe: Dunamic type converstion. Please help? Pin
VaporTrace18-Sep-05 12:19
VaporTrace18-Sep-05 12:19 
GeneralRe: Dunamic type converstion. Please help? Pin
RichardS18-Sep-05 13:47
RichardS18-Sep-05 13:47 
GeneralRe: Dunamic type converstion. Please help? Pin
LiquidE_SA18-Sep-05 14:01
LiquidE_SA18-Sep-05 14:01 
GeneralRe: Dunamic type converstion. Please help? Pin
RichardS18-Sep-05 14:35
RichardS18-Sep-05 14:35 
Hi,

Ok, the way you could do it is by creating a union. Seeing the you need types int, double and char, just create a union of them all:

typedef union
{
 char c;
 double d;
 int i;
} UTYPES;

This way you can use that for your template class. Now which ever type you need it will be in the union. But remember to be careful how you treat the union. You will also have to do some nifty programming in the template class to get around not being an exact type. The best would be a container class for it so that you can have some control over what values are stored in the union.

Hope this helps. Smile | :)

regards,
Rich


"Programming today is a race between software engineers striving to build bigger and
better idiot-proff programs, and the Universe trying to produce bigger and better idiots.
So far the Universe is winning." -- Rich Cook
GeneralRe: Dunamic type converstion. Please help? Pin
LiquidE_SA18-Sep-05 14:59
LiquidE_SA18-Sep-05 14:59 
Questioncan we declare destructor of a class as private? (C++) Pin
Anonymous17-Sep-05 12:42
Anonymous17-Sep-05 12:42 
AnswerRe: can we declare destructor of a class as private? (C++) Pin
Johann Gerell17-Sep-05 13:10
Johann Gerell17-Sep-05 13:10 
GeneralRe: can we declare destructor of a class as private? (C++) Pin
BlitzPackage17-Sep-05 13:57
BlitzPackage17-Sep-05 13:57 
AnswerRe: can we declare destructor of a class as private? (C++) Pin
Alexander M.,18-Sep-05 3:42
Alexander M.,18-Sep-05 3:42 
QuestionC/C++ Question Pin
Rajesh_K_Sharma17-Sep-05 7:05
Rajesh_K_Sharma17-Sep-05 7:05 
AnswerRe: C/C++ Question Pin
John M. Drescher17-Sep-05 8:31
John M. Drescher17-Sep-05 8:31 
GeneralRe: C/C++ Question Pin
RichardS17-Sep-05 16:47
RichardS17-Sep-05 16:47 
QuestionQuestion About Pointers in C++ Pin
17-Sep-05 5:54
suss17-Sep-05 5:54 
AnswerRe: Question About Pointers in C++ Pin
TheGreatAndPowerfulOz17-Sep-05 15:03
TheGreatAndPowerfulOz17-Sep-05 15:03 
GeneralRe: Question About Pointers in C++ Pin
BlitzPackage17-Sep-05 15:35
BlitzPackage17-Sep-05 15:35 
GeneralRe: Question About Pointers in C++ Pin
Achim Klein17-Sep-05 15:42
Achim Klein17-Sep-05 15:42 
GeneralRe: Question About Pointers in C++ Pin
BlitzPackage17-Sep-05 15:46
BlitzPackage17-Sep-05 15:46 
GeneralRe: Question About Pointers in C++ Pin
Achim Klein17-Sep-05 15:56
Achim Klein17-Sep-05 15:56 
GeneralRe: Question About Pointers in C++ Pin
RichardS17-Sep-05 17:31
RichardS17-Sep-05 17:31 
GeneralRe: Question About Pointers in C++ Pin
Achim Klein18-Sep-05 1:41
Achim Klein18-Sep-05 1:41 
AnswerRe: Question About Pointers in C++ Pin
Achim Klein17-Sep-05 15:33
Achim Klein17-Sep-05 15:33 

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.