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 do I see my C++ app?

How do I see my C++ app?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
7 Posts 5 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
    Angalo
    wrote on last edited by
    #1

    I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo

    M D N G 4 Replies Last reply
    0
    • A Angalo

      I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      There's no way to answer this without seeing any of your code.

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

      1 Reply Last reply
      0
      • A Angalo

        I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo

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

        How are you running it? Is it a GUI or console application? If the former, is it dialog, SDI, or MDI?


        "The largest fire starts but with the smallest spark." - David Crow

        A 1 Reply Last reply
        0
        • A Angalo

          I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #4

          Angalo wrote:

          I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help

          Use Ctrl-F5 or put a getch() as the last line in your main function. Regards, Nish


          Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
          Currently working on C++/CLI in Action for Manning Publications.

          1 Reply Last reply
          0
          • D David Crow

            How are you running it? Is it a GUI or console application? If the former, is it dialog, SDI, or MDI?


            "The largest fire starts but with the smallest spark." - David Crow

            A Offline
            A Offline
            Angalo
            wrote on last edited by
            #5

            Hi! It is a console application. When I run the exe it just shows the conole and immediately disappears.

            D 1 Reply Last reply
            0
            • A Angalo

              I have built a cpp project into an exe file. When I run it it just shows for a moment and disappear. How can I make it seen untill i close the app. Please help Angalo Angalo

              G Offline
              G Offline
              Gary R Wheeler
              wrote on last edited by
              #6

              It sounds like you are running your application under the debugger. Place a breakpoint on the last line of code in your application. For a console application, this will be the return statement in the main function.


              Software Zen: delete this;

              Fold With Us![^]

              1 Reply Last reply
              0
              • A Angalo

                Hi! It is a console application. When I run the exe it just shows the conole and immediately disappears.

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

                Open a command prompt window first, and then run your application from there. It should be fine.


                "The largest fire starts but with the smallest spark." - David Crow

                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