Original Post
Ok this is essentially a pointer problem but that doesn't mean switch off ;) C++ and DirectX 8.1 Program. Right i've created my classes as so: Control.h CGame* pGame; CUIClass* pUIClass; Control.cpp pGame = new CGame(); pUIClass = new CUIClass(etc, etc, pGame, etc, etc); and wish to pass the a pointer to the class into a seperate class so that i can work out an iterface based on contained values, i thought since that is a pointer to a piece of memory it'd be as simple as passing that value on creation of the class i.e.: CUIClass.h CGame *pGameLoc CUIClass.cpp CUIClass(etc, etc, pGame, etc, etc); { pGameLoc = pGame; } In theory I could then use pGameLoc to retrieve mouse data etc etc from the game class. However this is not true and from my debugging it seems i'm passing an instant of the pGame class to the CUIClass i.e. the values of the pGameLoc are the values of the class when it was passed even though i know the class is working fine since i can see my mouse moving and everything else is running smoothly. Is there a problem with pointers when declareing classes using new or am i just using the wrong combination of pointers and i've testing all the combinations that make sense and some that don't. Any help would be great thanks.