This is probably straight forward but I can't quite think of how to go about this....

I have a dialog class ADlgClass that uses an object from ObjClass to hold std::lists full of data. I don't want to have a static ObjClass variable in my ADlgClass but I need to have many, many functions of ADlgCLass be able to manipulate data in ObjClass. I tried doing:

PHP Code:
 ObjClass MyObj = new ObjClass
in the ADLgCLass ctor and then destroy it when the OnExit is processed by the dialog I'm getting mucho errors... How do I implement ObjClass so the entire ADlgClass sees it? Am I just a confused newbie??

Thanks