Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Isolating mathematical functions from an input string Pin
KEL322-Oct-07 22:20
KEL322-Oct-07 22:20 
QuestionHow to make a dll re-entrant? Pin
henk21cm20-Oct-07 10:12
henk21cm20-Oct-07 10:12 
AnswerRe: How to make a dll re-entrant? Pin
Abdellatif_El_Khlifi20-Oct-07 11:18
Abdellatif_El_Khlifi20-Oct-07 11:18 
AnswerRe: How to make a dll re-entrant? Pin
Mark Salsbery20-Oct-07 12:55
Mark Salsbery20-Oct-07 12:55 
AnswerRe: How to make a dll re-entrant? Pin
karle20-Oct-07 21:39
karle20-Oct-07 21:39 
GeneralRe: How to make a dll re-entrant? Pin
henk21cm20-Oct-07 23:05
henk21cm20-Oct-07 23:05 
AnswerRe: How to make a dll re-entrant? Pin
knockNrod2-Sep-10 3:10
knockNrod2-Sep-10 3:10 
Questionfunction name Pin
mauree20-Oct-07 10:11
mauree20-Oct-07 10:11 
Hello,

I have several functions (can be classes) which I want to choose at runtime using a string.
Example:
void name1(){blah blah}
and I want to use one string (for example "name1") to call this specific function.


One way would be to create a (the code below is not correct, just for illustration)
map<string, functions=""> Map_Functions;
What I don't like about that is that I have to fill the map manually:
Map_Functions["name1"] = &name1;

Is there a way to fill the map at run time using just the string "name1"?

thanks for any help,
mauree
AnswerRe: function name Pin
Nemanja Trifunovic20-Oct-07 13:00
Nemanja Trifunovic20-Oct-07 13:00 
GeneralRe: function name Pin
mauree20-Oct-07 13:14
mauree20-Oct-07 13:14 
GeneralRe: function name Pin
Nemanja Trifunovic21-Oct-07 2:40
Nemanja Trifunovic21-Oct-07 2:40 
AnswerRe: function name Pin
Nelek21-Oct-07 20:34
protectorNelek21-Oct-07 20:34 
QuestionCScrollSizes problem: [modified] Pin
Hakan Bulut20-Oct-07 8:45
Hakan Bulut20-Oct-07 8:45 
AnswerRe: CScrollSizes problem: Pin
Nelek21-Oct-07 20:36
protectorNelek21-Oct-07 20:36 
GeneralRe: CScrollSizes problem: Pin
Hakan Bulut21-Oct-07 23:35
Hakan Bulut21-Oct-07 23:35 
GeneralRe: CScrollSizes problem: Pin
Nelek22-Oct-07 4:37
protectorNelek22-Oct-07 4:37 
GeneralRe: CScrollSizes problem: [modified] Pin
Hakan Bulut22-Oct-07 22:00
Hakan Bulut22-Oct-07 22:00 
GeneralRe: CScrollSizes problem: Pin
Nelek29-Oct-07 21:40
protectorNelek29-Oct-07 21:40 
QuestionAbout network status check on local host Pin
Angelfirefox_20-Oct-07 8:10
Angelfirefox_20-Oct-07 8:10 
AnswerRe: About network status check on local host Pin
Hamid_RT20-Oct-07 19:33
Hamid_RT20-Oct-07 19:33 
Questionwhat do u meen by ....... Pin
NawabSahil20-Oct-07 7:03
NawabSahil20-Oct-07 7:03 
AnswerRe: what do u meen by ....... Pin
Steve Echols20-Oct-07 9:24
Steve Echols20-Oct-07 9:24 
AnswerRe: what do u meen by ....... Pin
Rick York20-Oct-07 19:11
mveRick York20-Oct-07 19:11 
AnswerRe: what do u meen by ....... Pin
Hamid_RT20-Oct-07 19:25
Hamid_RT20-Oct-07 19:25 
QuestionWS_MAXIMIZED problem Pin
Hakan Bulut20-Oct-07 6:06
Hakan Bulut20-Oct-07 6:06 

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.