How to pass CMyDoc object or pointer to function of another class called from CMyDoc::Func()

Hello

I want to pass CMyDoc reference or pointer to another class function. How to do this?

Class CMydoc
{
public:
int i;
};

CMyDoc::Func()
{

}

This is class Try and is in different file - Try.cpp:
Class Try
{
FuncTry(CMydoc *pDoc);
};
Try::FuncTry(CMydoc *pDoc)
{
char cc[10];
AfxMessageBox(_itoa(cc,pDoc->i,10));
}