A Windowless Program

Discussion in 'Win32' started by bragr, Nov 1, 2007.

  1. bragr

    bragr New Member

    Joined:
    Nov 1, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    I am working on a small program that changes system settings en mass based on the current settings. This program is mostly for efficiently since I change these setting, such as power settings and scream resolution, several times a day. (I have a laptop plugged into an external monitor with a higher resolution than what my laptop scream supports.) The problem is not how to do this, I already have a basic version hacked out, but that it still displays a console window even though there is no output whatsoever and this bugs me when it runs. Is there a simple way to create a windowless program in c++ without including some large 3rd part library, using only win32?
    I am using Mingw with win32api 3.10 so anything .Net specific is out which seems to be why I am having trouble.
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    3
    Trophy Points:
    0
    With Win32 programs unless you create a window it should not show.
     
  3. Spogliani

    Spogliani New Member

    Joined:
    Jun 24, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Milano, Italy
    You need to use the FreeConsole() function at the beginning of your program to hide the console window. Remember that every output that would be shown on the console makes it visible again
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice