Exchange of values among different classes of same project
-
:~ I have been unable to pass values from one class to another in a VC++ SDI application. Actually In one class (say class1) I am constantly getting CString values. I want to pass some of these values to another class (say class3). In class2 , user is setting some rules on the base of which it is decided that whether string shold be passed from class1(list control) to class3(list control). I have adopted a lot of methods but failed to do so even with a single one. I would prefer array[] to act as a buffer for these values. Plz help me out. But if there is some other easier method, plz suggest. Reply me soon
-
:~ I have been unable to pass values from one class to another in a VC++ SDI application. Actually In one class (say class1) I am constantly getting CString values. I want to pass some of these values to another class (say class3). In class2 , user is setting some rules on the base of which it is decided that whether string shold be passed from class1(list control) to class3(list control). I have adopted a lot of methods but failed to do so even with a single one. I would prefer array[] to act as a buffer for these values. Plz help me out. But if there is some other easier method, plz suggest. Reply me soon
Hi, I presume you want to store application specific data at a central point. This can be done by using member variables in your CDocument class. Get a pointer to the document in your other classes and you can access the data. You could/should add some helper functions in your document class to store and retrieve the data. Woody