Click here to Skip to main content
16,004,974 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: global new operator issue Pin
Bram van Kampen3-Nov-08 15:37
Bram van Kampen3-Nov-08 15:37 
GeneralRe: global new operator issue Pin
Abyss3-Nov-08 18:49
Abyss3-Nov-08 18:49 
GeneralRe: global new operator issue Pin
Bram van Kampen4-Nov-08 11:05
Bram van Kampen4-Nov-08 11:05 
QuestionFunction arguments and call description Pin
Ahmed Charfeddine3-Nov-08 4:48
Ahmed Charfeddine3-Nov-08 4:48 
AnswerRe: Function arguments and call description Pin
Cedric Moonen3-Nov-08 5:10
Cedric Moonen3-Nov-08 5:10 
GeneralRe: Function arguments and call description Pin
Ahmed Charfeddine3-Nov-08 21:34
Ahmed Charfeddine3-Nov-08 21:34 
GeneralRe: Function arguments and call description Pin
Cedric Moonen4-Nov-08 1:20
Cedric Moonen4-Nov-08 1:20 
AnswerRe: Function arguments and call description [modified] Pin
Bram van Kampen3-Nov-08 15:53
Bram van Kampen3-Nov-08 15:53 
hINTModuleState wrote:
I want to pass to a certain code block A, the address of that function by mean of a void* variable, and
also pass someother "metadata" about arguments order and types, so that the code block A can
succeed to callback that function.


I Don't know if I understand your question correctly, but it occurs to me that you want to:
1) Declare a pointer to a function taking an Argument;
2) Refer to that pointer later by calling the code the function pointer refers to, using the arguments supplied.

You quote Class or Structure Member functions, Their'e unbeleavibly more tricky. Best first get familiar with global functions:-

As Follows:-


<br />
typedef void (*PFN_MYFUNCTION)(LPCSTR pStr);<br />
<br />
PFN_MYFUNCTION mf=puts;<br />
mf("Hello World");<br />
<br />


Smile | :)

Bram van Kampen

modified on Monday, November 3, 2008 9:59 PM

GeneralRe: Function arguments and call description Pin
Ahmed Charfeddine3-Nov-08 21:43
Ahmed Charfeddine3-Nov-08 21:43 
GeneralRe: Function arguments and call description Pin
Bram van Kampen4-Nov-08 10:58
Bram van Kampen4-Nov-08 10:58 
QuestionCatch WM_ENABLE im MessageQueue Pin
baerten3-Nov-08 4:14
baerten3-Nov-08 4:14 
QuestionImport data and compile dll Pin
Andy H3-Nov-08 3:09
Andy H3-Nov-08 3:09 
Questionplaying with the value of HANDLE Pin
Ahmed Charfeddine3-Nov-08 2:43
Ahmed Charfeddine3-Nov-08 2:43 
AnswerRe: playing with the value of HANDLE Pin
David Crow3-Nov-08 3:15
David Crow3-Nov-08 3:15 
GeneralRe: playing with the value of HANDLE Pin
Ahmed Charfeddine3-Nov-08 3:28
Ahmed Charfeddine3-Nov-08 3:28 
AnswerRe: playing with the value of HANDLE Pin
CPallini3-Nov-08 3:22
mveCPallini3-Nov-08 3:22 
GeneralRe: playing with the value of HANDLE Pin
Ahmed Charfeddine3-Nov-08 3:27
Ahmed Charfeddine3-Nov-08 3:27 
QuestionOleCreateStaticFromData function call fails Pin
Dhiraj kumar Saini3-Nov-08 0:57
Dhiraj kumar Saini3-Nov-08 0:57 
QuestionNeed help in DateTimePicker Pin
sarat12in3-Nov-08 0:53
sarat12in3-Nov-08 0:53 
AnswerRe: Need help in DateTimePicker Pin
SandipG 3-Nov-08 1:19
SandipG 3-Nov-08 1:19 
GeneralRe: Need help in DateTimePicker Pin
sarat12in3-Nov-08 2:22
sarat12in3-Nov-08 2:22 
GeneralRe: Need help in DateTimePicker Pin
David Crow3-Nov-08 3:19
David Crow3-Nov-08 3:19 
GeneralRe: Need help in DateTimePicker Pin
sarat12in3-Nov-08 17:50
sarat12in3-Nov-08 17:50 
GeneralRe: Need help in DateTimePicker Pin
sarat12in3-Nov-08 18:39
sarat12in3-Nov-08 18:39 
GeneralRe: Need help in DateTimePicker Pin
David Crow4-Nov-08 3:30
David Crow4-Nov-08 3: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.