Thread: Newbie question

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    4
    I am using Visual C++ to compile. By standalone I was referring to a .exe file. When I compile, an .exe is built but when I try to run it, it flashes through DOS. (Dos loads quickly then disappears). How can I run this exe by itself?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >How can I run this exe by itself?
    You are running it by itself. But it needs a window to run in, so it creates a temporary command prompt. If you want the program to run in the background then you'll need to create a Win32 application and simply make the window invisible. But such a program is beyond the scope of this forum. You can ask in the Windows Programming forum though.
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Feb 2004
    Posts
    72
    Quote Originally Posted by geomark
    When I compile, an .exe is built but when I try to run it, it flashes through DOS. (Dos loads quickly then disappears).
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Stupid Newbie question
    By TimL in forum C++ Programming
    Replies: 4
    Last Post: 07-22-2008, 04:43 AM
  2. C prog newbie question
    By Draginzuzu in forum C Programming
    Replies: 1
    Last Post: 02-03-2003, 06:45 PM
  3. a stupid question from a newbie
    By newcomer in forum C++ Programming
    Replies: 4
    Last Post: 01-11-2003, 04:38 PM
  4. confusion with integers (newbie question)
    By imortal in forum C Programming
    Replies: 7
    Last Post: 12-06-2002, 04:09 PM
  5. newbie class templates question
    By daysleeper in forum C++ Programming
    Replies: 2
    Last Post: 09-18-2001, 09:50 AM