I have the following setup:

CHudForm:oPrint()
{ UpdateData(TRUE);
extern void PrintForm1(CPage* pPage);
PrintForm1(ps);
delete ps;
}



and then the function PrintForm1 in a separate file has the structure;

void PrintForm1()
{
}



How can I get a member variable from the CHudForm class? I tried setting up

void PrintForm1()
{ CHudForm vdlg;
vdlg.m_edit;
}



but this isn't getting the value. I don't understand how I can get a member variable from the class CHudForm. Any response any one can give me will be greatly appreciated.