Click here to Skip to main content
15,907,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys..I am designing an MFC application...I have 2 property pages attached to PropertySheet...I need to know how we can pass variables from 1 property page to another..for example...I have separate classes for 2 property pages PropertyPage1 and PropertyPage2 respectively..I have a public variable CString test decalared in PropertyPage1 class....I need this test varaible to be used in PropertyPage2 class...how can i pass
this variable...
Posted

1 solution

You have two separate property page classes, probably created by the same object, i.e. an instance of the property sheet: you should use such property sheet object as intermediary to pass values from one page to the other one.
This article: "Dialogs Communication" explains how to to exchange data; tough the scenario is quite different, the technique is quite general.
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900