Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamically creating variable length argument list Pin
David Crow21-Oct-03 11:02
David Crow21-Oct-03 11:02 
GeneralRe: Dynamically creating variable length argument list Pin
Kentamanos21-Oct-03 11:27
Kentamanos21-Oct-03 11:27 
GeneralRe: Dynamically creating variable length argument list Pin
David Crow21-Oct-03 17:06
David Crow21-Oct-03 17:06 
GeneralRe: Dynamically creating variable length argument list Pin
Kentamanos22-Oct-03 6:38
Kentamanos22-Oct-03 6:38 
GeneralRe: Dynamically creating variable length argument list Pin
David Crow22-Oct-03 7:34
David Crow22-Oct-03 7:34 
GeneralRe: Dynamically creating variable length argument list Pin
WREY21-Oct-03 11:26
WREY21-Oct-03 11:26 
GeneralRe: Dynamically creating variable length argument list Pin
Kentamanos21-Oct-03 11:47
Kentamanos21-Oct-03 11:47 
GeneralRe: Dynamically creating variable length argument list Pin
WREY21-Oct-03 12:58
WREY21-Oct-03 12:58 
While the vector approach (I previously mentioned) would work, I agree, it could be a pain to go that route.

Perhaps a simpler approach might be to just pass the address of "wsprintf" itself as a parameter, and then activate its address (which would be activating wsprintf itself). IOW, handle wsprintf as a pointer to a function.

The address of "wsprintf" is the name itself. Include the name as an extra parameter in the DLL Hook function that gets called, and at the appropriate time simply use it as you would at any other time. For example:
void DLLHookFunc(etc., wsprintf);
//then later do this
wsprintf(parameter1, ...);


William

Fortes in fide et opere!
GeneralRe: Dynamically creating variable length argument list Pin
Kentamanos21-Oct-03 13:19
Kentamanos21-Oct-03 13:19 
GeneralRe: Dynamically creating variable length argument list Pin
WREY21-Oct-03 14:23
WREY21-Oct-03 14:23 
GeneralRe: Dynamically creating variable length argument list Pin
Kentamanos22-Oct-03 6:41
Kentamanos22-Oct-03 6:41 
GeneralRe: Dynamically creating variable length argument list Pin
John R. Shaw21-Oct-03 15:21
John R. Shaw21-Oct-03 15:21 
GeneralC++ Question. Pin
WREY21-Oct-03 9:41
WREY21-Oct-03 9:41 
GeneralRe: C++ Question. Pin
David Crow21-Oct-03 9:46
David Crow21-Oct-03 9:46 
GeneralRe: C++ Question. Pin
WREY21-Oct-03 10:30
WREY21-Oct-03 10:30 
GeneralRe: C++ Question. Pin
Andrew Walker21-Oct-03 14:05
Andrew Walker21-Oct-03 14:05 
GeneralRe: C++ Question. Pin
John R. Shaw21-Oct-03 15:55
John R. Shaw21-Oct-03 15:55 
GeneralRe: C++ Question. Pin
WREY21-Oct-03 23:35
WREY21-Oct-03 23:35 
GeneralSpecified the path with Cfiledialog Pin
sdfdsfa21-Oct-03 8:37
sdfdsfa21-Oct-03 8:37 
GeneralRe: Specified the path with Cfiledialog Pin
David Crow21-Oct-03 9:44
David Crow21-Oct-03 9:44 
GeneralRe: Specified the path with Cfiledialog Pin
Anonymous21-Oct-03 18:33
Anonymous21-Oct-03 18:33 
GeneralSerialization Pin
swerajan21-Oct-03 8:25
swerajan21-Oct-03 8:25 
GeneralRe: Serialization Pin
David Crow21-Oct-03 9:43
David Crow21-Oct-03 9:43 
GeneralRe: Serialization Pin
John R. Shaw21-Oct-03 16:15
John R. Shaw21-Oct-03 16:15 
Generaloleacc horror Pin
Mukkie21-Oct-03 8:24
Mukkie21-Oct-03 8:24 

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.