Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRegistry access on another Windows Installation Pin
Akin Ocal23-Jun-07 20:09
Akin Ocal23-Jun-07 20:09 
AnswerRe: Registry access on another Windows Installation Pin
Perspx23-Jun-07 22:00
Perspx23-Jun-07 22:00 
QuestionMIDI to WAVE converter Pin
Jacky98423-Jun-07 19:08
Jacky98423-Jun-07 19:08 
QuestionRedirection of buffer data to sound card and storing output as .wav file Pin
patelviral23-Jun-07 18:32
patelviral23-Jun-07 18:32 
QuestionFunction Pointer Vector Pin
0rigin23-Jun-07 16:26
0rigin23-Jun-07 16:26 
AnswerRe: Function Pointer Vector Pin
Mark Salsbery23-Jun-07 20:28
Mark Salsbery23-Jun-07 20:28 
GeneralRe: Function Pointer Vector Pin
0rigin23-Jun-07 20:55
0rigin23-Jun-07 20:55 
GeneralRe: Function Pointer Vector Pin
Mark Salsbery23-Jun-07 21:16
Mark Salsbery23-Jun-07 21:16 
0rigin wrote:
I need to be able to call a dynamic list of function pointers without a type requirement


This is tough because C++ is a strongly typed language.

You can keep a vector of member function pointers but to call those functions through the
pointers you'll need an object of the class the function is a member of.

That means you'll also need to store objects to make the calls on (i.e. "registrants" also need
to register an object along with the function pointer).

If the objects are all the same class (or a class derived from a common class) then one function
pointer typedef could be used, like you're doing.

If the objects are all different class types then you'd need to have separate typedefs for all the
separate member function pointers.

I don't know if those are "nuggets of wisdom" Smile | :)

Mark


"I'm the Dude. So that's what you call me. You know, that or, uh, His Dudeness, or uh, Duder, or El Duderino if you're not into the whole brevity thing." The Big Lebowski

GeneralRe: Function Pointer Vector Pin
Cyrilix24-Jun-07 8:34
Cyrilix24-Jun-07 8:34 
GeneralRe: Function Pointer Vector Pin
0rigin24-Jun-07 8:53
0rigin24-Jun-07 8:53 
GeneralRe: Function Pointer Vector Pin
Cyrilix24-Jun-07 9:16
Cyrilix24-Jun-07 9:16 
QuestionDistribution in .NET 8 Pin
Dave Kerr23-Jun-07 13:41
mentorDave Kerr23-Jun-07 13:41 
AnswerRe: Distribution in .NET 8 Pin
Christian Graus23-Jun-07 14:00
protectorChristian Graus23-Jun-07 14:00 
GeneralRe: Distribution in .NET 8 Pin
Dave Kerr24-Jun-07 0:00
mentorDave Kerr24-Jun-07 0:00 
GeneralRe: Distribution in .NET 8 Pin
Mark Salsbery24-Jun-07 6:18
Mark Salsbery24-Jun-07 6:18 
Questionhow to dynamically access to a function or to its name? Pin
Arris7423-Jun-07 10:05
Arris7423-Jun-07 10:05 
AnswerRe: how to dynamically access to a function or to its name? Pin
dabs23-Jun-07 10:37
dabs23-Jun-07 10:37 
GeneralRe: how to dynamically access to a function or to its name? Pin
Arris7423-Jun-07 10:51
Arris7423-Jun-07 10:51 
GeneralRe: how to dynamically access to a function or to its name? Pin
dabs23-Jun-07 15:38
dabs23-Jun-07 15:38 
Questionconversion function for midi to wave in MFC/VC++ 6.0 Pin
patelviral23-Jun-07 10:01
patelviral23-Jun-07 10:01 
QuestionAPI function to get the CPU load Pin
mbrezu223-Jun-07 8:55
mbrezu223-Jun-07 8:55 
AnswerRe: API function to get the CPU load Pin
Mike Dimmick24-Jun-07 12:34
Mike Dimmick24-Jun-07 12:34 
Questionvirtual functions Pin
tom groezer23-Jun-07 8:31
tom groezer23-Jun-07 8:31 
AnswerRe: virtual functions Pin
Mark Salsbery23-Jun-07 8:48
Mark Salsbery23-Jun-07 8:48 
QuestionDynamic resource file Pin
hariharask23-Jun-07 8:30
hariharask23-Jun-07 8:30 

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.