c++ w/o a window

This is a discussion on c++ w/o a window within the C++ Programming forums, part of the General Programming Boards category; How do I make a c++ program run in the background with no window? Thanks...

  1. #1
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735

    c++ w/o a window

    How do I make a c++ program run in the background with no window?

    Thanks

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Write a GUI program without the GUI. Since you neglected to mention your OS, I can't really be more specific. But we have both a Linux and a Windows forum that could add more detail if you use one of them.
    My best code is written with the delete key.

  3. #3
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    Windows with MSVS 6.
    Write a GUI program without the GUI.
    I thought of that, but I was wondering if there was a command like KillConsoleWindow() because I would like to have the console for the first part of the program if possible.

  4. #4
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    Why would you want a program running w/o someone knowing it was running? If you are wanting to write Systray programs, check the SDK. For drivers check the DDK.

    For other programs that run w/o the user knowing about it, consult the FBI.

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    You need to create a Win32 Application, but make sure it's not a Console application - that automatically creates the console window.

    This way, you can, for example, run as a system service. (Apache for example has no window and no SysTray icon (the one you see is a separate app) - perfectly harmless application.)
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #6
    Registered User
    Join Date
    Mar 2005
    Posts
    39
    yeah..theres nuffin wrong with it...u might want to intergrate an opensource app..like a renderer..in your program..but might not want its window running..instead..u might want the render to happen inside your program..i suppose it makes ur app look for professional.

    BTW: Im a total noobi..How would u du this in OSX?
    Cheers

    Alex

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 09:23 AM
  2. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  3. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 11:50 AM
  4. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  5. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 11:14 PM

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