I created a dialog window in MFC VC++. in that, I inserted a button to open another dialog window. I want to perform some tasks in the second dialog based on the variables involved in first dialog class. So how can I get access of that in the second dialag class.
What I have tried:
I couldn't achieve even though I tried the following ways.
1)I declared all the parameters as public which I require
2)I inherited that first dialog class along with CDialog class into the second dialog class, but there were build errors.
Please help me. It will be very useful for my project.