I don't know how to exchange data between 2 dialogs. Can I use global variable? If yes, how and where (or what file I can put it into?)
Is there other ways.
Thanks
Printable View
I don't know how to exchange data between 2 dialogs. Can I use global variable? If yes, how and where (or what file I can put it into?)
Is there other ways.
Thanks
Better use public variables in your dialogs. For example, to exchange text from one dialog to the other do this:
m_dlg1_text = dlg2.m_dlg2_text;
or
dlg1.m_dlg1_text = dlg2.m_dlg2_text;
This will keep the OO concept untainted.
And if you have no choice but to use global variable, global variable are declared in the MyApp.h/cpp files and use with theApp object
Sandrine