Creating an instance of an object & inheriting from that creator object
Im having serious problems with this. Ive got an class called newCtl. This class needs to create another different object instance when it is created (i.e through its constructor). The object to be instanced is called newPrj_win.
Now c++ doesnt seem to allow me to inherit (i.e newPrj_win: public newCtl) from an object that created the object in the first place. I need it to do this as the origional object is a control class giving functionaility for the child class to use
Its hard to explain so please bear with me. Im using wxWidgets btw as my gui.