Click here to Skip to main content
15,917,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading a word doc in C++ Pin
Ryan Binns8-Aug-03 0:39
Ryan Binns8-Aug-03 0:39 
GeneralRe: Reading a word doc in C++ Pin
Anonymous8-Aug-03 2:05
Anonymous8-Aug-03 2:05 
GeneralRe: Reading a word doc in C++ Pin
Ryan Binns8-Aug-03 2:10
Ryan Binns8-Aug-03 2:10 
GeneralRe: Reading a word doc in C++ Pin
David Crow8-Aug-03 7:25
David Crow8-Aug-03 7:25 
GeneralRe: Reading a word doc in C++ Pin
Ryan Binns8-Aug-03 17:07
Ryan Binns8-Aug-03 17:07 
GeneralRe: Reading a word doc in C++ Pin
Michael P Butler8-Aug-03 2:20
Michael P Butler8-Aug-03 2:20 
GeneralRe: Reading a word doc in C++ Pin
Ryan Binns8-Aug-03 4:56
Ryan Binns8-Aug-03 4:56 
Generalcalling the function specified by a string Pin
Jerome Conus7-Aug-03 23:12
Jerome Conus7-Aug-03 23:12 
Hi !!

Here is what I'd like to do in C++ : (I don't know if it's possible or not)

I have several functions in a class. I want to call one of them according to a given string representing the name of the function to be called. It looks to me that the only possible way to do it is to manually compare the given string with each existing function and call the good one, but I think it would me much better to have it done automatically, without having to add a comparison if a new function is added.

I'd like to have something like :

MyObject->callThisFunction("processArray");

which would result in calling the processArray() function.

Any help or suggestion will be greatly appreciated !

Jerome
GeneralRe: calling the function specified by a string Pin
John M. Drescher7-Aug-03 23:19
John M. Drescher7-Aug-03 23:19 
GeneralRe: calling the function specified by a string Pin
Jerome Conus7-Aug-03 23:24
Jerome Conus7-Aug-03 23:24 
GeneralRe: calling the function specified by a string Pin
John M. Drescher7-Aug-03 23:30
John M. Drescher7-Aug-03 23:30 
GeneralRe: calling the function specified by a string Pin
Vitali Halershtein7-Aug-03 23:36
Vitali Halershtein7-Aug-03 23:36 
GeneralRe: calling the function specified by a string Pin
jhwurmbach8-Aug-03 3:03
jhwurmbach8-Aug-03 3:03 
GeneralRe: calling the function specified by a string Pin
Jerome Conus8-Aug-03 3:23
Jerome Conus8-Aug-03 3:23 
GeneralRe: calling the function specified by a string Pin
jhwurmbach8-Aug-03 4:30
jhwurmbach8-Aug-03 4:30 
GeneralRe: calling the function specified by a string Pin
Jerome Conus8-Aug-03 4:39
Jerome Conus8-Aug-03 4:39 
GeneralRe: calling the function specified by a string Pin
Anthony_Yio11-Aug-03 2:06
Anthony_Yio11-Aug-03 2:06 
GeneralStock Color Property Page Pin
marcvoor1237-Aug-03 22:37
marcvoor1237-Aug-03 22:37 
GeneralProblems with sockets (win32) Pin
justin2237-Aug-03 21:55
justin2237-Aug-03 21:55 
GeneralRe: Problems with sockets (win32) Pin
John M. Drescher7-Aug-03 23:25
John M. Drescher7-Aug-03 23:25 
GeneralRe: Problems with sockets (win32) Pin
justin2237-Aug-03 23:27
justin2237-Aug-03 23:27 
GeneralCursor in DirectX Pin
Skirmish7-Aug-03 21:23
Skirmish7-Aug-03 21:23 
GeneralResizing limit Pin
SLiDeR7-Aug-03 20:08
SLiDeR7-Aug-03 20:08 
GeneralRe: Resizing limit Pin
Larry Antram7-Aug-03 20:17
Larry Antram7-Aug-03 20:17 
QuestionHow to fire an event from the program? Pin
ben27-Aug-03 20:02
ben27-Aug-03 20:02 

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.