hi,
I have a function that receive a function pointer and an XML string which has the defination of the function and the argument per say:
void CallFunction( void * pFuncion, std::string xmlFuncionDef)
{
}
Inside the above function,
xmlFunctionDef
contains the defination of the function pointed by
pFunction
. For example, number paramter, type of each parameter, and the arguments:
<Function ParamCount="3" ReturnType="int">
<Params>
<Param type="int" DefaultValue="None" PassBy="Value"/>
<Param type="double" DefaultValue="None" PassBy="Referenc"/>
<Param type="char*" DefaultValue="None" PassBy="Pointer"/>
</Params>
<Arguments>
<Arg Value="3" />
<Arg Value="29.5" />
<Arg Value="Hello World" />
</Arguments>
</Function>
Now how can I call this function? Should I use
_asm
for this? Any help would be highly appriciative.
/Mizan