Click here to Skip to main content
16,016,425 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about IO Completion Ports Pin
regale27-Jun-04 19:19
regale27-Jun-04 19:19 
GeneralLinking to C++ Pin
c. s.26-Jun-04 15:46
c. s.26-Jun-04 15:46 
GeneralRe: Linking to C++ Pin
darkbyte27-Jun-04 4:29
darkbyte27-Jun-04 4:29 
QuestionUsing Alt key in Windows app? Pin
IGx8926-Jun-04 11:57
IGx8926-Jun-04 11:57 
AnswerRe: Using Alt key in Windows app? Pin
Jörgen Sigvardsson27-Jun-04 11:04
Jörgen Sigvardsson27-Jun-04 11:04 
GeneralRe: Using Alt key in Windows app? Pin
IGx8928-Jun-04 13:45
IGx8928-Jun-04 13:45 
Generalpassing values from edit boxes to the button Pin
lyn26-Jun-04 10:34
lyn26-Jun-04 10:34 
GeneralRe: passing values from edit boxes to the button Pin
DougW4826-Jun-04 18:08
DougW4826-Jun-04 18:08 
I've been using C# for a number of months, so I'm a bit rusty on Visual C++, but I'll try to help you out.

You can get the values in a number of ways, but I have always found the following to be the easiest:

CString A_Value, B_Value, C_Value;<br />
EditBoxA.GetWindowText( A_Value );<br />
EditBoxB.GetWindowText( B_Value );<br />
<br />
int TempA = 0;<br />
for ( int x = 0; x < A_Value.GetLength(); x++ )<br />
TempA = isdigit(CurrentSelection[x])?TempA*10+(CurrentSelection[x] -48):TempA;<br />
<br />
int TempB = 0;<br />
for ( int x = 0; x < B_Value.GetLength(); x++ )<br />
TempB = isdigit(CurrentSelection[x])?TempB*10+(CurrentSelection[x] -48):TempB;<br />
<br />
CValue.Format( "%d", TempA+TempB );<br />
EditBoxC.SetWindowText( CValue );


The Above should work...again, I have used C++ for a while, there may be an easier method of parsing the strings into integer values, but those loops will work (although they don't work for doubles, only integers...you'll have to figure that out on your own.)

Good luck, I hope I at least gave you an idea of what you can do.

-Doug
GeneralRe: passing values from edit boxes to the button Pin
lyn26-Jun-04 18:17
lyn26-Jun-04 18:17 
GeneralRe: passing values from edit boxes to the button Pin
PJ Arends26-Jun-04 18:24
professionalPJ Arends26-Jun-04 18:24 
GeneralNeed a GetClusterSize function Pin
Paul Steane26-Jun-04 8:47
Paul Steane26-Jun-04 8:47 
Questiona font from a ttf file? Pin
CaesarCZ26-Jun-04 5:56
CaesarCZ26-Jun-04 5:56 
AnswerRe: a font from a ttf file? Pin
darkbyte27-Jun-04 4:22
darkbyte27-Jun-04 4:22 
QuestionHow can I rename an NT user using the ADSI? Pin
zzzhouzhou26-Jun-04 5:46
zzzhouzhou26-Jun-04 5:46 
Generalscrollbar Pin
cruscotto26-Jun-04 4:36
cruscotto26-Jun-04 4:36 
GeneralRe: scrollbar Pin
Prakash Nadar26-Jun-04 7:31
Prakash Nadar26-Jun-04 7:31 
GeneralRe: scrollbar Pin
cruscotto26-Jun-04 21:51
cruscotto26-Jun-04 21:51 
GeneralToolbar flicker Pin
Jim Crafton26-Jun-04 4:07
Jim Crafton26-Jun-04 4:07 
GeneralRe: Toolbar flicker Pin
Michael Dunn26-Jun-04 12:42
sitebuilderMichael Dunn26-Jun-04 12:42 
GeneralRe: Toolbar flicker Pin
Jim Crafton29-Jun-04 18:35
Jim Crafton29-Jun-04 18:35 
GeneralVisual Basic Question Pin
Stylemaster26-Jun-04 3:47
professionalStylemaster26-Jun-04 3:47 
GeneralRe: Visual Basic Question Pin
Hesham Amin26-Jun-04 4:15
Hesham Amin26-Jun-04 4:15 
GeneralSend msg to child by using FindWindow Pin
Sumit Kapoor26-Jun-04 0:16
Sumit Kapoor26-Jun-04 0:16 
GeneralRe: Send msg to child by using FindWindow Pin
PJ Arends26-Jun-04 6:06
professionalPJ Arends26-Jun-04 6:06 
GeneralCComboBox Pin
TrungHuynh25-Jun-04 23:57
TrungHuynh25-Jun-04 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.