Click here to Skip to main content
15,891,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFunction pointer Pin
Marco Bertschi21-Mar-13 0:10
protectorMarco Bertschi21-Mar-13 0:10 
Hi all,

For my current project[^] I need to use a function pointer to allow a QueueHandler to execute the task of a QueueObject.
I know about what a function pointer is, no worries I searched the net[^] a bit.
I got one question:
-- Is there a possibility to point towards a function without knowing what it exactly returns, and more important without any knowledge of the count and type of the parameters?

In the end it should be like the delegate I know from the .NET side of multithreading.

Thanks for all suggestions in advance.

[Edit: To the univoter who stroke down this question:
Either explain why you have down-voted or go and die in a f*cking fire you moronic ********]

cheers
Marco Bertschi

Software Developer & Founder SMGT Web-Portal
CP Profile | Twitter | Facebook | SMGT Web-Portal

FizzBuzz - Gary Wheeler


modified 21-Mar-13 11:55am.

AnswerRe: Function pointer Pin
Richard MacCutchan21-Mar-13 0:51
mveRichard MacCutchan21-Mar-13 0:51 
GeneralRe: Function pointer Pin
Marco Bertschi21-Mar-13 1:06
protectorMarco Bertschi21-Mar-13 1:06 
GeneralRe: Function pointer Pin
Richard Andrew x6421-Mar-13 1:57
professionalRichard Andrew x6421-Mar-13 1:57 
GeneralRe: Function pointer Pin
Marco Bertschi21-Mar-13 2:16
protectorMarco Bertschi21-Mar-13 2:16 
GeneralRe: Function pointer Pin
Freak3021-Mar-13 2:30
Freak3021-Mar-13 2:30 
GeneralRe: Function pointer Pin
Marco Bertschi21-Mar-13 2:36
protectorMarco Bertschi21-Mar-13 2:36 
GeneralRe: Function pointer Pin
dusty_dex21-Mar-13 4:21
dusty_dex21-Mar-13 4:21 
GeneralRe: Function pointer Pin
Richard MacCutchan21-Mar-13 3:28
mveRichard MacCutchan21-Mar-13 3:28 

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.