CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Posts
    17

    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


  2. #2
    Join Date
    Aug 1999
    Location
    Bulgaria
    Posts
    236

    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.


  3. #3
    Join Date
    Jun 1999
    Location
    Toulouse - France
    Posts
    135

    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
  •  





Click Here to Expand Forum to Full Width

Featured