I Posted this post earlier,but I guess I didnt express really what I wanted.(So I was getting answers which was not helpful for me).

For Eg;
Iam Having a
Class A
{
inline CycleBuffer& GetCycleBuffer(){return *m_pCycleBuffer;}
Public:
DesignDocumentData* m_pDesignDocumentData;
LdMapDocumentData* m_pLdMapDocumentData;

MapDocumentData* m_pMapDocumentData;

NgDocData m_ngDocData;
I_NgDocDataRead* m_pNgDocData;
CyclicBuffer *m_pCyclicBuffer;


};

IN a class called say ,"C"
I have created the class
A *ptr = new A;
and I have assigned each variable with some value.

Now Iam in class B & I want to access some values which are there in class A;
So in
Class B
{
B(){ *ptr = NULL;}
GetDATA(/* Want to acces data using the A *ptr; */);

Private:

A *ptr;
};

So if I create a different object with "new" operator,I guess I wont be able to access the datas stored earlier & I dont want to make the members static in class A.
I want to have the same object instance which was created in class C.

How can I do it?could anyone show it with a code snippet.

Thanks in advance