Re: Class to Class data transfer



donguy76@xxxxxxxxx wrote:
>
>The above code works when the OK button of class A dialog is clicked.
>What if the class A dialog is still active and the class B dialog has
>been opened from inside class A dialog.

Somehow, you have to give your B instance a pointer to your A instance.
There are lots of ways to do that.

void ClassA::StartDialog()
{
ClassB dlg;
dlg.set_A_Instance( this );

if(dlg.DoModal() == IDOK) {
...
}
}
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.


Loading