المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Calling the functions from different class



C++ Programming
06-15-2009, 05:11 PM
Hello all, im very much confused with this make this snippet work,, let me explain my problem in simple. please follow the folling code.
class ClassA
{
public:
function_A();
function_B();
}

class Class1
{
public:
ClassA A1
Function_1();
}

class Class1::Function_1()
{
Dlg1.DoModal();

A1.function_A();
A1.function_B();
}

class ClassDlg
{
FunDlg();
}

ClassDlg::On*******()
{
i wanted "A1.function_A();"
i wanted "A1.function_B();"
}

The Dialog window will be called by "Class1::Function_1()" so after closing the dialog window the function "A1.function_A();" and "A1.function_B();" are called in order to update the contents of the mainpage(say property page). actually the contents are modified in the dialog ******** so what i wanted to do is call the functions "A1.function_A();" and "A1.function_B();" before closing the dialog window say at after pressing the"*******" button(On******* will be called). Im confused its not just happening what i desired. can any expert give me a solution, like is there any try statement i can give..??
please help me...