Exforsys
+ Reply to Thread
Results 1 to 2 of 2

How to hide the command prompt window.

This is a discussion on How to hide the command prompt window. within the C and C++ forums, part of the Programming Talk category; Is there any way of hiding the command prompt window when run code in C++ that needs no input from ...

  1. #1
    Praveen Chandra is offline Junior Member Array
    Join Date
    Jan 2006
    Answers
    16

    How to hide the command prompt window.

    Is there any way of hiding the command prompt window when run code in C++ that needs no input from the reader?


  2. #2
    cyrus is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    128
    You can use the functions:
    FindWindow and ShowWindow to achieve this

    For instance you can take the following tip for achieving your result:
    variable_name=FindWindow("class name", NULL);

    If the function fails the return value is NULL.
    ShowWindow(variable_name,0);


Latest Article

Network Security Risk Assessment and Measurement

Read More...