M
mick.mcmahon
Hi, i need some help, i'm new-ish to c++ but was an experienced VB6
programmer.
I am trying to do something in c++ along the lines of something i did
a couple of years ago in vb.
Basically, i have loads classes, and want to store them in some sort
of array/container and enumerate through them and call a couple of
methods. I don't need to know which one i'm calling.
In VB i use an shell class and with all the methods that i wanted to
call. then created my other classes implementing the shell interface.
I stored them all in a collection and went through them by creating a
class varible of the interface type and then storing the class from
the collection into it and calling the methods.
I've spent a couple of days looking now, and it's either impossible or
i just don't know the teminolgy for how to do it.
Any help much appreciated.
Mick.
programmer.
I am trying to do something in c++ along the lines of something i did
a couple of years ago in vb.
Basically, i have loads classes, and want to store them in some sort
of array/container and enumerate through them and call a couple of
methods. I don't need to know which one i'm calling.
In VB i use an shell class and with all the methods that i wanted to
call. then created my other classes implementing the shell interface.
I stored them all in a collection and went through them by creating a
class varible of the interface type and then storing the class from
the collection into it and calling the methods.
I've spent a couple of days looking now, and it's either impossible or
i just don't know the teminolgy for how to do it.
Any help much appreciated.
Mick.