Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Setting the colour of a control item Pin
«_Superman_»8-Feb-10 5:10
professional«_Superman_»8-Feb-10 5:10 
AnswerRe: Setting the colour of a control item Pin
KingsGambit8-Feb-10 8:00
KingsGambit8-Feb-10 8:00 
QuestionHow to instance a class which name is in a string? Pin
transoft8-Feb-10 3:27
transoft8-Feb-10 3:27 
AnswerRe: How to instance a class which name is in a string? Pin
Hristo-Bojilov8-Feb-10 3:38
Hristo-Bojilov8-Feb-10 3:38 
GeneralRe: How to instance a class which name is in a string? Pin
transoft8-Feb-10 3:44
transoft8-Feb-10 3:44 
GeneralRe: How to instance a class which name is in a string? Pin
Cedric Moonen8-Feb-10 5:19
Cedric Moonen8-Feb-10 5:19 
GeneralRe: How to instance a class which name is in a string? Pin
ThatsAlok9-Feb-10 0:08
ThatsAlok9-Feb-10 0:08 
GeneralRe: How to instance a class which name is in a string? Pin
Cedric Moonen9-Feb-10 1:04
Cedric Moonen9-Feb-10 1:04 
ThatsAlok but it factory pattern, all class name should be pre-known, i think he asking for dynamically loading class object.


You can't create an instance of a class that doesn't exist... Of course your classes have to be known at compile time, thus you can also populate easily your factory with the names.
Furthermore, even if you were able to create an instance of any class, what would you do with it ? You can't write any code that will use the class because you don't know which object you are manipulating (unless all the classes inherit from the same base class in which case you manipulate the base class).
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

GeneralRe: How to instance a class which name is in a string? Pin
Moak8-Feb-10 5:23
Moak8-Feb-10 5:23 
GeneralRe: How to instance a class which name is in a string? Pin
ThatsAlok9-Feb-10 0:09
ThatsAlok9-Feb-10 0:09 
AnswerRe: How to instance a class which name is in a string? Pin
«_Superman_»8-Feb-10 5:30
professional«_Superman_»8-Feb-10 5:30 
GeneralRe: How to instance a class which name is in a string? Pin
ThatsAlok9-Feb-10 0:14
ThatsAlok9-Feb-10 0:14 
AnswerRe: How to instance a class which name is in a string? Pin
ThatsAlok9-Feb-10 0:05
ThatsAlok9-Feb-10 0:05 
GeneralRe: How to instance a class which name is in a string? Pin
Cedric Moonen9-Feb-10 1:01
Cedric Moonen9-Feb-10 1:01 
QuestionRegConnectRegistry and RegOpenKey return Access is Denied. Pin
Le@rner8-Feb-10 1:57
Le@rner8-Feb-10 1:57 
Questionhow to create a button in cview class? Pin
Paulraj G8-Feb-10 1:16
Paulraj G8-Feb-10 1:16 
AnswerRe: how to create a button in cview class? Pin
Code-o-mat8-Feb-10 1:36
Code-o-mat8-Feb-10 1:36 
GeneralRe: how to create a button in cview class? Pin
Paulraj G8-Feb-10 1:39
Paulraj G8-Feb-10 1:39 
AnswerRe: how to create a button in cview class? [modified] Pin
transoft8-Feb-10 3:35
transoft8-Feb-10 3:35 
AnswerRe: how to create a button in cview class? Pin
sthalasayanam8-Feb-10 4:43
sthalasayanam8-Feb-10 4:43 
AnswerRe: how to create a button in cview class? Pin
KingsGambit8-Feb-10 8:49
KingsGambit8-Feb-10 8:49 
QuestionGrid with check boxes in coloum headers Pin
arun_pk7-Feb-10 23:20
arun_pk7-Feb-10 23:20 
AnswerRe: Grid with check boxes in coloum headers Pin
«_Superman_»8-Feb-10 5:41
professional«_Superman_»8-Feb-10 5:41 
QuestionCString to double conversion. Pin
Member 43997717-Feb-10 22:50
Member 43997717-Feb-10 22:50 
AnswerRe: CString to double conversion. Pin
Cedric Moonen7-Feb-10 23:01
Cedric Moonen7-Feb-10 23:01 

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.