|
-
September 14th, 1999, 06:21 PM
#1
How to exchange data between two dialogs
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
-
September 15th, 1999, 02:02 AM
#2
Re: How to exchange data between two dialogs
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.
-
September 15th, 1999, 02:56 AM
#3
Re: How to exchange data between two dialogs
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|