Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Passing Data from Dialog to Dialog - MFC

Posted on 2003-03-30
Medium Priority
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?


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

Question by:fastawdtsi

Accepted Solution

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

Author Comment

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


Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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 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.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

581 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