Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp needed on ATL control Pin
ben217-Mar-04 6:18
ben217-Mar-04 6:18 
GeneralConverting a CString to CInt Pin
Blue Pyre17-Mar-04 6:15
Blue Pyre17-Mar-04 6:15 
GeneralRe: Converting a CString to CInt Pin
Joe Woodbury17-Mar-04 6:30
professionalJoe Woodbury17-Mar-04 6:30 
GeneralRe: Converting a CString to CInt Pin
Antti Keskinen17-Mar-04 6:37
Antti Keskinen17-Mar-04 6:37 
GeneralRe: Converting a CString to CInt Pin
HAHAHA_NEXT17-Mar-04 6:52
HAHAHA_NEXT17-Mar-04 6:52 
GeneralRe: Converting a CString to CInt Pin
Blue Pyre17-Mar-04 10:52
Blue Pyre17-Mar-04 10:52 
GeneralRe: Converting a CString to CInt Pin
MeterMan17-Mar-04 10:58
MeterMan17-Mar-04 10:58 
GeneralRe: Converting a CString to CInt Pin
Blue Pyre17-Mar-04 11:38
Blue Pyre17-Mar-04 11:38 
Ok i've converted the string to an int, but its not working as I planned..

What i've done is created a few buttons for a calculator.
Theres a string, and every time you click on a button a value is added to the end of the string. For example if you click a button with 5 on it, the code would be StringOutcome += "5".
I thought you may be able to do things like addition as well, so if you pressed 9 then + then 4, StringOutcome would be "9+4". If, in turn you converted this to an int it should see it as 9+4, therefore as 11. Only problem is that its not working like that... Its just displaying the first number you press.

Can anyone shed light on what is happening, and any kind of way around it?
GeneralRe: Converting a CString to CInt Pin
Prakash Nadar17-Mar-04 14:55
Prakash Nadar17-Mar-04 14:55 
GeneralRe: Converting a CString to CInt Pin
MeterMan17-Mar-04 14:57
MeterMan17-Mar-04 14:57 
GeneralC++ .NET Forms Shutdown application Pin
Neoankt17-Mar-04 6:09
Neoankt17-Mar-04 6:09 
GeneralRe: C++ .NET Forms Shutdown application Pin
Antti Keskinen17-Mar-04 7:05
Antti Keskinen17-Mar-04 7:05 
GeneralNeed a Good COM Tutorial !!! Pin
HAHAHA_NEXT17-Mar-04 6:06
HAHAHA_NEXT17-Mar-04 6:06 
GeneralSecondary display dimension winxp Pin
Bernardo Faria17-Mar-04 6:04
sussBernardo Faria17-Mar-04 6:04 
GeneralSend F5 or left arrow message Pin
Tomaz Rotovnik17-Mar-04 5:33
Tomaz Rotovnik17-Mar-04 5:33 
GeneralRe: Send F5 or left arrow message Pin
gUrM33T17-Mar-04 14:50
gUrM33T17-Mar-04 14:50 
GeneralRe: Send F5 or left arrow message Pin
Tomaz Rotovnik18-Mar-04 7:25
Tomaz Rotovnik18-Mar-04 7:25 
GeneralHelp With Control Focus Pin
Jack Reed17-Mar-04 4:44
Jack Reed17-Mar-04 4:44 
GeneralRe: Help With Control Focus Pin
David Crow17-Mar-04 4:53
David Crow17-Mar-04 4:53 
GeneralRe: Help With Control Focus Pin
Jack Reed19-Mar-04 9:38
Jack Reed19-Mar-04 9:38 
Questionwhat does "rhs" mean? Pin
Bash17-Mar-04 4:23
Bash17-Mar-04 4:23 
AnswerRe: what does "rhs" mean? Pin
TFrancis17-Mar-04 4:27
TFrancis17-Mar-04 4:27 
AnswerRe: what does "rhs" mean? Pin
hph17-Mar-04 4:28
hph17-Mar-04 4:28 
GeneralIncluding project files from library Pin
Cedric Moonen17-Mar-04 4:19
Cedric Moonen17-Mar-04 4:19 
GeneralOpenProcess Pin
hph17-Mar-04 4:03
hph17-Mar-04 4:03 

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.