Visual C++ data conversion 4 n00b

This is a discussion on Visual C++ data conversion 4 n00b within the Windows Programming forums, part of the Platform Specific Boards category; Hey everyone. I'm using Visual C++ 2005 Express Edition and I have 2 textboxes and a button. How would I ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Location
    Massachussetts
    Posts
    8

    Visual C++ data conversion 4 n00b

    Hey everyone. I'm using Visual C++ 2005 Express Edition and I have 2 textboxes and a button. How would I make the button display the numbers which are the textbox(string) added together(an integer)? Any help is needed. Thanks

  2. #2
    Banned Yuri's Avatar
    Join Date
    Aug 2005
    Location
    Breukelen, The Netherlands
    Posts
    133
    Read the both numbers of the textboxes and convert those to an integer add them together like a normal integer and convert the number back to a string and display it.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Location
    Massachussetts
    Posts
    8
    Yea, I don't know how to do exactly that.

  4. #4
    Banned Yuri's Avatar
    Join Date
    Aug 2005
    Location
    Breukelen, The Netherlands
    Posts
    133
    You could write your own string to integer and integer to string converters or use one that already exists.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. data structure design for data aggregation
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 05-20-2008, 06:43 AM
  2. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. header file bringing errors?
    By bluehead in forum Windows Programming
    Replies: 4
    Last Post: 08-19-2003, 12:51 PM
  5. C diamonds and perls :)
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 05-16-2003, 10:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21