X
xsist10
whats the best method. delphi lets you do something very simple
ptrMethodFoo : procedure
how do you do this in C++?
ptrMethodFoo : procedure
how do you do this in C++?
xsist10 said:whats the best method. delphi lets you do something very simple
ptrMethodFoo : procedure
how do you do this in C++?
xsist10 said:whats the best method.
delphi lets you do something very simple
ptrMethodFoo : procedure
how do you do this in C++?
Woodster said:I was trying to do something similar where I have several derived
classes each containing it's own specific member variables.
I am trying to construct a report consisting of values extracted from
my derived classes, where the report is entered as XML and I just
extract
custom tags and replace them with a value. The way I wanted to do
this was to construct a list of name-value pairs, where the name is
the tag I am searching for and the value is a pointer to a method from
one of the derived classes.
Woodster said:I was trying to do something similar where I have several derived
classes each containing it's own specific member variables.
I am trying to construct a report consisting of values extracted from my
derived classes, where the report is entered as XML and I just extract
custom tags and replace them with a value. The way I wanted to do this
was to construct a list of name-value pairs, where the name is the tag I
am searching for and the value is a pointer to a method from one of the
derived classes. I do not know which classes the values will be coming
from until I reach the desired tag.
How would/should I declare a structure that will simply store a string
value (char *) and a function * as required so I couold call a specific
class method based on one of these string values?
whats the best method. delphi lets you do something very simple
ptrMethodFoo : procedure
how do you do this in C++?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.