Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C / C++ / MFC
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashish dogra
    wrote on last edited by
    #1

    [Message Deleted]

    C H T 3 Replies Last reply
    0
    • A ashish dogra

      [Message Deleted]

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      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

      A 1 Reply Last reply
      0
      • C Cedric Moonen

        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

        A Offline
        A Offline
        ashish dogra
        wrote on last edited by
        #3

        how 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

        1 Reply Last reply
        0
        • A ashish dogra

          [Message Deleted]

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          See int a,b; a=GetDlgItemInt(IDC_EDIT1); b=GetDlgItemInt(IDC_EDIT2); SetDlgItemInt(IDC_EDIT3,a+b);_**


          **_

          whitesky


          1 Reply Last reply
          0
          • A ashish dogra

            [Message Deleted]

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups