?
Solved

Passing Data from Dialog to Dialog - MFC

Posted on 2003-03-30
2
Medium Priority
?
334 Views
Last Modified: 2008-03-06
Hello Everyone;

I need some help on getting some data from one dialog to another - how would I do it?

i.e.

DialogA have some data that needs to be sent to DialogB when Dialog be is instantiated, then when DialogB is done with the data, it needs to pass it back to DialogA.

I must be looking over a simple concept about this or something, cause I can figure it out.

Thanks so much

Ernie
0
Comment
Question by:fastawdtsi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
bistrica earned 400 total points
ID: 8234793
declare somedata as public variable in DialogA
when creating DialogB pass in constuctor pointer to DialogA
then refer to somedata
modify it
and that's it
0
 

Author Comment

by:fastawdtsi
ID: 8235451
I knew I was missing something simple - thanks a lot

Ernie
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question