Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CopyMemory or memcpy Pin
Programm3r6-Sep-06 21:34
Programm3r6-Sep-06 21:34 
GeneralRe: CopyMemory or memcpy Pin
Hamid_RT6-Sep-06 21:35
Hamid_RT6-Sep-06 21:35 
GeneralRe: CopyMemory or memcpy Pin
Waldermort6-Sep-06 21:54
Waldermort6-Sep-06 21:54 
AnswerRe: CopyMemory or memcpy Pin
David Crow7-Sep-06 4:24
David Crow7-Sep-06 4:24 
QuestionCListCtrl, How to see only some column Pin
NorGUI6-Sep-06 20:47
NorGUI6-Sep-06 20:47 
AnswerRe: CListCtrl, How to see only some column Pin
Programm3r6-Sep-06 20:59
Programm3r6-Sep-06 20:59 
QuestionRe: CListCtrl, How to see only some column Pin
Hamid_RT6-Sep-06 21:35
Hamid_RT6-Sep-06 21:35 
QuestionRe: CListCtrl, How to see only some column Pin
David Crow7-Sep-06 4:25
David Crow7-Sep-06 4:25 
QuestionIs windproc special function and callback question. Pin
sawerr6-Sep-06 20:40
sawerr6-Sep-06 20:40 
AnswerRe: Is windproc special function and callback question. Pin
Cedric Moonen6-Sep-06 20:49
Cedric Moonen6-Sep-06 20:49 
AnswerRe: Is windproc special function and callback question. Pin
Waldermort6-Sep-06 21:31
Waldermort6-Sep-06 21:31 
GeneralRe: Is windproc special function and callback question. Pin
Cedric Moonen6-Sep-06 21:39
Cedric Moonen6-Sep-06 21:39 
GeneralRe: Is windproc special function and callback question. Pin
sawerr6-Sep-06 21:59
sawerr6-Sep-06 21:59 
GeneralRe: Is windproc special function and callback question. [modified] Pin
Waldermort6-Sep-06 22:09
Waldermort6-Sep-06 22:09 
AnswerRe: Is windproc special function and callback question. Pin
m.dietz6-Sep-06 23:37
m.dietz6-Sep-06 23:37 
QuestionConsole question Pin
alex.barylski6-Sep-06 20:33
alex.barylski6-Sep-06 20:33 
AnswerRe: Console question Pin
Waldermort6-Sep-06 21:17
Waldermort6-Sep-06 21:17 
GeneralRe: Console question Pin
alex.barylski7-Sep-06 9:30
alex.barylski7-Sep-06 9:30 
AnswerRe: Console question Pin
toxcct6-Sep-06 21:23
toxcct6-Sep-06 21:23 
GeneralRe: Console question Pin
benjymous6-Sep-06 21:31
benjymous6-Sep-06 21:31 
GeneralRe: Console question Pin
toxcct6-Sep-06 21:44
toxcct6-Sep-06 21:44 
AnswerRe: Console question Pin
vinclaro0017-Sep-06 15:35
vinclaro0017-Sep-06 15:35 
AnswerRe: writing data in txt file Pin
Programm3r6-Sep-06 20:43
Programm3r6-Sep-06 20:43 
JokeRe: writing data in txt file Pin
Hamid_RT6-Sep-06 21:39
Hamid_RT6-Sep-06 21:39 
QuestionPointer to function with variable argument list Pin
Crazy Joe Devola6-Sep-06 17:26
Crazy Joe Devola6-Sep-06 17:26 
Hi,

I am writing a wrapper for a DLL that has 2 functions:
int func1(long p1);
int func2(char *p1, ...);

The wrapper creates pointes to the two functions:
int (* pfunc1)(long p1);
int (* pfunc2)(char *p1, ...);

To call function 1 I do: wrapper.pfunc1(1234);

My problem is: how do I call func2 using the pointer? Sometimes I may pass 1 parameters, sometimes 2 or 3 or 4, and the data types may change.
Is it possible at all to do this?

Thanks

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.