Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Gradate colors with RGB? Pin
Steve T1-Aug-01 11:29
Steve T1-Aug-01 11:29 
QuestionHow to print a list control in a dialog box? Pin
nulldreamer30-Jul-01 20:00
nulldreamer30-Jul-01 20:00 
GeneralSTL container of multiple types Pin
Todd Smith30-Jul-01 15:45
Todd Smith30-Jul-01 15:45 
GeneralRe: STL container of multiple types Pin
Christian Graus30-Jul-01 16:12
protectorChristian Graus30-Jul-01 16:12 
GeneralRe: STL container of multiple types Pin
Todd Smith30-Jul-01 19:22
Todd Smith30-Jul-01 19:22 
GeneralRe: STL container of multiple types Pin
Shankar Chandra Bose30-Jul-01 21:05
Shankar Chandra Bose30-Jul-01 21:05 
GeneralRe: STL container of multiple types Pin
Not Active31-Jul-01 3:34
mentorNot Active31-Jul-01 3:34 
GeneralRe: STL container of multiple types Pin
Philippe Mori31-Jul-01 4:25
Philippe Mori31-Jul-01 4:25 
If this is what you want to do, I suggest that you uses a wrapper class like COleVariant or _variant_t (or maybe your own class).

At least those class properly handle memory managment and help a with initialisation. The one to uses depends on your needs. If you need more functionaly, then you should create your own class that may derive or embed a COleVariant or _variant_t.

_variant_t class may be a bit easier to uses since it allows conversion from the variant to another type:

_variant_t v(3.2);
double d = v;


but it does not support writting to CArchive...

You may also uses _variant_t for the container and create ColeVariant object at place you need extra functionaly.


Philippe Mori
GeneralRe: STL container of multiple types Pin
Todd Smith31-Jul-01 5:52
Todd Smith31-Jul-01 5:52 
QuestionHow can I move mouse cursor from my program? Pin
30-Jul-01 14:21
suss30-Jul-01 14:21 
AnswerRe: How can I move mouse cursor from my program? Pin
Carlos Antollini30-Jul-01 15:47
Carlos Antollini30-Jul-01 15:47 
GeneralDisabling Keys Pin
Orbitalne30-Jul-01 12:23
Orbitalne30-Jul-01 12:23 
GeneralRe: Disabling Keys Pin
Matt.W.30-Jul-01 15:47
Matt.W.30-Jul-01 15:47 
GeneralRe: Disabling Keys Pin
31-Jul-01 4:52
suss31-Jul-01 4:52 
Generalpalmap32.dll <-pretty impossible !?! Pin
30-Jul-01 11:42
suss30-Jul-01 11:42 
GeneralSynchronizing a global function Pin
PJ Arends30-Jul-01 11:37
professionalPJ Arends30-Jul-01 11:37 
GeneralRe: Synchronizing a global function Pin
Tomasz Sowinski30-Jul-01 11:42
Tomasz Sowinski30-Jul-01 11:42 
GeneralRe: Synchronizing a global function Pin
PJ Arends30-Jul-01 11:44
professionalPJ Arends30-Jul-01 11:44 
GeneralDegree to pixel Pin
Not Active30-Jul-01 11:26
mentorNot Active30-Jul-01 11:26 
GeneralRe: Degree to pixel Pin
Tomasz Sowinski30-Jul-01 11:47
Tomasz Sowinski30-Jul-01 11:47 
GeneralRe: Degree to pixel Pin
Wolfram Steinke30-Jul-01 11:49
Wolfram Steinke30-Jul-01 11:49 
GeneralUDP Socket Pin
orcun colak30-Jul-01 10:37
orcun colak30-Jul-01 10:37 
GeneralRe: UDP Socket Pin
EiSl2-Aug-01 1:52
EiSl2-Aug-01 1:52 
Generalmultirow buttons in CToolBar Pin
gaylen30-Jul-01 9:55
gaylen30-Jul-01 9:55 
GeneralRe: multirow buttons in CToolBar Pin
EiSl2-Aug-01 1:55
EiSl2-Aug-01 1:55 

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.