Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual C++

Status
Not open for further replies.

Kori

Programmer
Oct 17, 2000
35
US
I am very very new at Visual C++. How do you grab a variable from another dialog box? If a dialog box is what it is called? I am familiar with Visual basic so I will tell you what I am after in VB terms.

I have a two forms called frm1 and frm2. I am now in frm2 but want to grab a variable that is on frm1. So my call would look like frm1.variable to grab that variable. How do I do this in Visual C++?
 
Form1 would need to pass the variable to form2 or a pointer to form1 would need to be passed to form2 for access to the variable. There are other ways but these would be the most straight forward.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top