[Message Deleted]
-
[Message Deleted]
-
[Message Deleted]
Take a look at the atoi[^] and itoa[^] functions. First, retrieve the text in the edit controls (with GetWindowText), transform it into an int with atoi, add them together and convert the result into a string with itoa. Then display it in the other edit control with SetWindowText.
Cédric Moonen Software developer
Charting control -
Take a look at the atoi[^] and itoa[^] functions. First, retrieve the text in the edit controls (with GetWindowText), transform it into an int with atoi, add them together and convert the result into a string with itoa. Then display it in the other edit control with SetWindowText.
Cédric Moonen Software developer
Charting controlhow to set base as i want values but it gives in 2,3,4,5... base as 1+1 =2 but it gives value according to base Ashish Dogra MCA Noida
-
[Message Deleted]
See
int a,b; a=GetDlgItemInt(IDC_EDIT1); b=GetDlgItemInt(IDC_EDIT2); SetDlgItemInt(IDC_EDIT3,a+b);
_**
**_
whitesky
-
[Message Deleted]
ashish dogra wrote:
we take two values from two edit controls and then add in to third edit control
In MFC:- SetDlgItemInt(THIRDCONTROLID,GetDlgItemInt(FirstControlID)+GetDlgItemInt(SecondControlId));
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You