Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: file find/copy Pin
22491724-Apr-05 17:56
22491724-Apr-05 17:56 
Questionfireing OLE Control Events??? Pin
tobi7823-Apr-05 8:37
tobi7823-Apr-05 8:37 
Generalarray of structs read in from a file Pin
Truby4223-Apr-05 8:23
Truby4223-Apr-05 8:23 
GeneralRe: array of structs read in from a file Pin
Peter Ritchie23-Apr-05 8:29
Peter Ritchie23-Apr-05 8:29 
GeneralWinhttp from service not working Pin
gP_t_gr823-Apr-05 8:09
gP_t_gr823-Apr-05 8:09 
GeneralRe: Winhttp from service not working Pin
22491723-Apr-05 9:42
22491723-Apr-05 9:42 
GeneralRe: Winhttp from service not working Pin
gP_t_gr824-Apr-05 19:20
gP_t_gr824-Apr-05 19:20 
GeneralGetting input in an array... Pin
Aqseel A. Mirza23-Apr-05 7:12
sussAqseel A. Mirza23-Apr-05 7:12 
GeneralRe: Getting input in an array... Pin
Ravi Bhavnani23-Apr-05 7:43
professionalRavi Bhavnani23-Apr-05 7:43 
GeneralRe: Getting input in an array... Pin
Member 190113623-Apr-05 15:24
Member 190113623-Apr-05 15:24 
Generalcin.get is creating problem Pin
Aqueel25-Apr-05 1:55
Aqueel25-Apr-05 1:55 
GeneralRe: cin.get is creating problem Pin
Member 190113625-Apr-05 2:06
Member 190113625-Apr-05 2:06 
GeneralThanks Pin
Aqueel25-Apr-05 3:50
Aqueel25-Apr-05 3:50 
GeneralWM_KILLFOCUS Pin
PeteMan_R23-Apr-05 6:55
PeteMan_R23-Apr-05 6:55 
GeneralRe: WM_KILLFOCUS Pin
Peter Ritchie23-Apr-05 8:36
Peter Ritchie23-Apr-05 8:36 
GeneralRe: WM_KILLFOCUS Pin
PJ Arends23-Apr-05 14:55
professionalPJ Arends23-Apr-05 14:55 
GeneralRe: WM_KILLFOCUS Pin
PeteMan_R23-Apr-05 15:18
PeteMan_R23-Apr-05 15:18 
GeneralRe: WM_KILLFOCUS Pin
Ravi Bhavnani23-Apr-05 18:24
professionalRavi Bhavnani23-Apr-05 18:24 
GeneralRe: WM_KILLFOCUS Pin
Anonymous25-Apr-05 18:07
Anonymous25-Apr-05 18:07 
GeneralPlease help me! Pin
dSolariuM23-Apr-05 4:27
dSolariuM23-Apr-05 4:27 
GeneralRe: Please help me! Pin
Ravi Bhavnani23-Apr-05 7:46
professionalRavi Bhavnani23-Apr-05 7:46 
GeneralRe: Please help me! Pin
dSolariuM24-Apr-05 5:01
dSolariuM24-Apr-05 5:01 
GeneralRe: Please help me! Pin
Ravi Bhavnani24-Apr-05 5:51
professionalRavi Bhavnani24-Apr-05 5:51 
Generaltext over image Pin
Lampros Giampouras23-Apr-05 4:06
Lampros Giampouras23-Apr-05 4:06 
Generalvirtual static Pin
Konrad Windszus23-Apr-05 3:38
Konrad Windszus23-Apr-05 3:38 
I have one abstract class and several classes which are all derived from the abstract class.
How can I create all of those classes without calling each constructor? The way I found is via the CRuntimeClass::CreateObject method and enter the RUNTIME_CLASS(Classname) in an array. So I can easily add classes by simply adding them to an array. Is there another solution, because I am not allowed to have any parameters within my constructors with this solution?
And how can I detect by a keyword which class to create? The keywords are static member variables in the classes. How can I dynamically compare those keywords with a given keyword without creating the classes and then instanciate the appropriate class?
Thanks for any help.
Konrad

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.