I am developing a application in MFC in which i have a mainframe with class CChildview and a dialog class (called AddDeleteNode) Now i call this dialog via a button called Add/Delete Node On the main frame and then there is a edit box in my dialog class with Add button next to it and i type sum numbers(numerical value) in it and click Add for which i gets the value from edit box in string and converts it into double and then exports this value back to childview class via this CChildView Exportvar; Exportvar.AddNodeTo(dGetWt); now the problem is when it goes back to childview class all the other data which i read at beginning of the program and stored in member variables in childview.h is lost and showing garbage value .. i dont know whats happening please help..!!