Que
September 14th, 1999, 06:21 PM
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
Is there other ways.
Thanks
|
Click to See Complete Forum and Search --> : How to exchange data between two dialogs Que September 14th, 1999, 06:21 PM 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 ric980 September 15th, 1999, 02:02 AM 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. Sandrine September 15th, 1999, 02:56 AM 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 codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |