Re: Get object from one CDialog to another

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You could have Campaign* members in both your dialog classes and do
something like this :-

dlg1.DoModal();
dlg2.m_pCampaign = dlg1.m_pCampaign;
dlg2.DoModal();

--
Regards,
Nish [VC++ MVP]


"Si" <si@xxxxxxxxxxx> wrote in message
news:JkR9f.25724$6i4.7472@xxxxxxxxxxxxxxxxxxxxxxx
>I have a dialog MFC application, and I have it so that another modal dialog
>opens before the main dialog. The first dialog is for logging into a
>"Campaign". As soon as the first dialog closes the main one opens.
>
> How do I get a Campaign object from the first modal dialog into the second
> (main dialog)?
>


.



Relevant Pages