freeconsole();

This is a discussion on freeconsole(); within the C++ Programming forums, part of the General Programming Boards category; This function is supposed to hide cmd window correct? but it doesnt for me =( whats wrong? Me and a ...

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    18

    freeconsole();

    This function is supposed to hide cmd window correct? but it doesnt for me =( whats wrong?
    Me and a friend want to create a fun, harmless prank on another buddies computer.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    If you are doing this on a command prompt, then your application is likely not the only owner of the console window:
    Quote Originally Posted by MSDN
    If other processes share the console, the console is not destroyed, but the process that called FreeConsole cannot refer to it
    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

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