Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Function arguments and call description Pin
Ahmed Charfeddine3-Nov-08 21:43
Ahmed Charfeddine3-Nov-08 21:43 
Thank you for your reply.
Unfortrunately your solution is not sufficient.

OK It is good as far as I'd like only to remove the hypothesis that the code block A knows the exact implementation of the function : ie just declare a pointer like you put, then an external code block
B would arrive and bring the "puts" function and pass it as a value for the pointer mf in A.

What I'm much worried to do, instead, is to also remove the prior information about arguments' types and order.
In your solution : PFN_MYFUNCTION is a type for the (void)(LPCTSTR) functions only.

Instead how can develop a code block A where may be I would only store a void*, then externally
set that void* with functions of any type with the only possiblity to pass arugument info metadat at exection time ??


Thank you in advance.

"The Awaited Saviour", Mohammed Baqir Al Sadr

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 
GeneralRe: Need help in DateTimePicker Pin
David Crow4-Nov-08 3:28
David Crow4-Nov-08 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.