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. How to get data from user during run time?

How to get data from user during run time?

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
10 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.
  • K Offline
    K Offline
    kapardhi
    wrote on last edited by
    #1

    Hai! Using MessageBox or AfxMessageBox we are able to display some message to the user during runtime, the message may include the value returned from a function etc. Can we do the other way ?? I want the user should enter one byte data during run time, depending on the entered value i want to proceed my calculation . Is it posible in MFC, if yes how to do it !! Thanks!

    D 1 Reply Last reply
    0
    • K kapardhi

      Hai! Using MessageBox or AfxMessageBox we are able to display some message to the user during runtime, the message may include the value returned from a function etc. Can we do the other way ?? I want the user should enter one byte data during run time, depending on the entered value i want to proceed my calculation . Is it posible in MFC, if yes how to do it !! Thanks!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      kapardhi wrote:

      I want the user should enter one byte data during run time, depending on the entered value i want to proceed my calculation . Is it posible in MFC, if yes how to do it !!

      So why not just create a dialog box with an edit control?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      K CPalliniC 2 Replies Last reply
      0
      • D David Crow

        kapardhi wrote:

        I want the user should enter one byte data during run time, depending on the entered value i want to proceed my calculation . Is it posible in MFC, if yes how to do it !!

        So why not just create a dialog box with an edit control?

        "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        K Offline
        K Offline
        kapardhi
        wrote on last edited by
        #3

        Is there no other way other than creating a dialog !!! Any inbuilt messagebox !! thanks!

        D M 2 Replies Last reply
        0
        • K kapardhi

          Is there no other way other than creating a dialog !!! Any inbuilt messagebox !! thanks!

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          kapardhi wrote:

          Is there no other way other than creating a dialog !!!

          No.

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          CPalliniC 1 Reply Last reply
          0
          • K kapardhi

            Is there no other way other than creating a dialog !!! Any inbuilt messagebox !! thanks!

            M Offline
            M Offline
            Michael Schubert
            wrote on last edited by
            #5

            Instead of typing all these exclamation marks you could have already created that dialog.

            1 Reply Last reply
            0
            • D David Crow

              kapardhi wrote:

              Is there no other way other than creating a dialog !!!

              No.

              "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

              "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

              CPalliniC Online
              CPalliniC Online
              CPallini
              wrote on last edited by
              #6

              :-D

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
              This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
              [My articles]

              In testa che avete, signor di Ceprano?

              1 Reply Last reply
              0
              • D David Crow

                kapardhi wrote:

                I want the user should enter one byte data during run time, depending on the entered value i want to proceed my calculation . Is it posible in MFC, if yes how to do it !!

                So why not just create a dialog box with an edit control?

                "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

                "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                CPalliniC Online
                CPalliniC Online
                CPallini
                wrote on last edited by
                #7

                :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                [My articles]

                In testa che avete, signor di Ceprano?

                M 1 Reply Last reply
                0
                • CPalliniC CPallini

                  :)

                  If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                  This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                  [My articles]

                  M Offline
                  M Offline
                  Michael Schubert
                  wrote on last edited by
                  #8

                  What are you smoking today?

                  CPalliniC 1 Reply Last reply
                  0
                  • M Michael Schubert

                    What are you smoking today?

                    CPalliniC Online
                    CPalliniC Online
                    CPallini
                    wrote on last edited by
                    #9

                    Do you want to join the party? :laugh:

                    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                    [My articles]

                    In testa che avete, signor di Ceprano?

                    M 1 Reply Last reply
                    0
                    • CPalliniC CPallini

                      Do you want to join the party? :laugh:

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                      [My articles]

                      M Offline
                      M Offline
                      Michael Schubert
                      wrote on last edited by
                      #10

                      Absolutely!

                      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