nanomachine007 wrote:click on green icon rectangular just left word debug you can see the result of that code. I use vs2005 but professional version i dont know if there are different between them
btw if you want link your variable to your control you have to check to function DataExchange something like that.
Edit control your variable for that type is an instance of CEdit or CString. u just check help online about that. I never ask help when i'am learning mfc or other just read more documentation.
button control your variable must be an instance of CButton
and after go to procedure dataexchange and link them for example like this
DDX_control(pDX,IDC_EDIT1,yourvariableforEditControlHere);
then after you can interact with your control by your variable with procedure UpdateData
in our case I linked the Edit control with an instance of CString.
i tried u code and i got this error on runngit :



