Exchange of values among different classes
-
I have been unable to pass a value from one class to the other in an SDI application in MFC. I tried it by declaring a static variable in a header file and then including this header file in both the classes.Then by incrementing value in one class and I tried to get in in the other class. That is not working properly. It is not updating the value. Plz suggest me how to do it(i.e pass val. from one dialog to the other ); Suggest me the easiest ways of doing so. Because I am a beginner in VC++ so kindly guide me step by step. Reply me soon
-
I have been unable to pass a value from one class to the other in an SDI application in MFC. I tried it by declaring a static variable in a header file and then including this header file in both the classes.Then by incrementing value in one class and I tried to get in in the other class. That is not working properly. It is not updating the value. Plz suggest me how to do it(i.e pass val. from one dialog to the other ); Suggest me the easiest ways of doing so. Because I am a beginner in VC++ so kindly guide me step by step. Reply me soon
Same problem i am facing.