vc++ MFC
-
Hai Dear; Can anyone tell me how to get a data or member variable value from one class to another class. Thanks for help. Regards, Selvan.S
Well, that's not a very good question, is it? Let's take two classes, A and B. Now B wants to make a query to A. So, A must implement a method, which in turn queries the value of the member variable and returns it. The answer is way too generic, because the question was generic too. If you show us some code on what and how are you trying to do something, we may guide you further. I am asking you to be a little more specific.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
-
Well, that's not a very good question, is it? Let's take two classes, A and B. Now B wants to make a query to A. So, A must implement a method, which in turn queries the value of the member variable and returns it. The answer is way too generic, because the question was generic too. If you show us some code on what and how are you trying to do something, we may guide you further. I am asking you to be a little more specific.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche .·´¯`·->Rajesh<-·´¯`·. [Microsoft MVP - Visual C++]
humm global variable should be automatic advice for beginners :)
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/xml>