Hi,
Can someone please tell me if it is possible to use a string to call a function?
If so can you give an example.
thanks,
Passy
Printable View
Hi,
Can someone please tell me if it is possible to use a string to call a function?
If so can you give an example.
thanks,
Passy
A quick search produced this page, which I think is what you were after:
http://cboard.cprogramming.com/showt...+function+call
Cheers,
Z.
thx
Just to throw the cat among the pigeons.
Given type information and a function pointer, this is entirely possible.
See the windows function DispInvoke.
Quote:
DispInvoke builds a stack frame, coerces parameters using standard coercion rules, pushes them on the stack, and then calls the correct member function in the VTBL.