Click here to Skip to main content
15,913,130 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Summer & Winter time Pin
Martijn van Kleef10-Nov-04 22:43
Martijn van Kleef10-Nov-04 22:43 
GeneralRe: Summer & Winter time Pin
Anonymous10-Nov-04 23:32
Anonymous10-Nov-04 23:32 
GeneralRe: Summer & Winter time Pin
jan larsen10-Nov-04 23:57
jan larsen10-Nov-04 23:57 
GeneralRe: Summer & Winter time Pin
Henry miller11-Nov-04 3:37
Henry miller11-Nov-04 3:37 
GeneralRe: Summer & Winter time Pin
jan larsen10-Nov-04 23:55
jan larsen10-Nov-04 23:55 
GeneralRe: Summer & Winter time Pin
David Crow11-Nov-04 2:46
David Crow11-Nov-04 2:46 
GeneralRe: Summer & Winter time Pin
Michael Dunn11-Nov-04 11:54
sitebuilderMichael Dunn11-Nov-04 11:54 
Questionhow to compile this sample? Pin
includeh1010-Nov-04 21:26
includeh1010-Nov-04 21:26 
AnswerRe: how to compile this sample? Pin
David Crow11-Nov-04 3:31
David Crow11-Nov-04 3:31 
GeneralWindows Forms Help Pin
Member 213881410-Nov-04 21:03
Member 213881410-Nov-04 21:03 
GeneralRe: Windows Forms Help Pin
pubududilena10-Nov-04 23:25
pubududilena10-Nov-04 23:25 
Questionhow to set a custom paper size on a printer Pin
JP GOBLET10-Nov-04 21:01
JP GOBLET10-Nov-04 21:01 
GeneralPlease Help-Device Driver Development in VC++ Pin
Mirza Faizan10-Nov-04 20:57
Mirza Faizan10-Nov-04 20:57 
GeneralRemote Desktop Access Pin
Anshul Mehra10-Nov-04 20:15
professionalAnshul Mehra10-Nov-04 20:15 
GeneralTiling jpeg as dialog backgroung Pin
Tariq87810-Nov-04 19:43
Tariq87810-Nov-04 19:43 
GeneralRe: Tiling jpeg as dialog backgroung Pin
ThatsAlok10-Nov-04 22:06
ThatsAlok10-Nov-04 22:06 
Generalpointer to function from its name Pin
fickdb10-Nov-04 18:16
fickdb10-Nov-04 18:16 
Generaltake alook Pin
Anonymous10-Nov-04 19:47
Anonymous10-Nov-04 19:47 
GeneralRe: take alook Pin
fickdb11-Nov-04 4:42
fickdb11-Nov-04 4:42 
GeneralRe: pointer to function from its name Pin
jan larsen10-Nov-04 23:47
jan larsen10-Nov-04 23:47 
GeneralRe: pointer to function from its name Pin
fickdb11-Nov-04 4:46
fickdb11-Nov-04 4:46 
GeneralRe: Templates? Pin
Budric B.11-Nov-04 5:45
Budric B.11-Nov-04 5:45 
GeneralRe: Templates? Pin
fickdb11-Nov-04 6:59
fickdb11-Nov-04 6:59 
GeneralRe: pointer to function from its name Pin
jan larsen12-Nov-04 0:21
jan larsen12-Nov-04 0:21 
fickdb wrote:
I think its ok for pure c functions, but my prob is that i need to make a new object only knowing his name (or his constructor name). same problem as above except that foo and bar are classes...

The word you're looking for, I suppose, is Reflection. This is not possible in C++ for the same reasons as I mentioned before.
But you can of course work around the limitations, to do so requires a solid knowledge of the language and tools.
If you know, and understand, COM, you will realize that the interface IDispatch is invented for just that reason. Again, if you really need the feature, you could either use COM and IDispatch, or you could copy the technique.
What it all comes down to though, is that you're probably better of using C# for your project.

"After all it's just text at the end of the day. - Colin Davies

"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
GeneralSolution ? Seems to work ;) Pin
fickdb12-Nov-04 0:49
fickdb12-Nov-04 0:49 

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.