assume I've a string
Now I want someObject.methodName() or someObject->methodName() which will actually do someObject->xyz();Code:string methodName="xyz";
Now How this job can be performed with C++.
remember the Objectname is known however the methodName is not (e.g. methodName is specified by a string variable)
EDIT
I am not stuck on someObject.methodName() syntax. this can be performed by any syntax. I ultimately call the xyz() method e.g. the method with the same name as the value ofthe string methodName() somehow.
EDIT
Platform Independent Solutions (If possible) are most Welcome



LinkBack URL
About LinkBacks


