Thread: how to hide the console program?

  1. #1
    Registered User
    Join Date
    Apr 2003

    how to hide the console program?

    Hi everyone,
    I am working on a project that uses Flash to call other executable programs written in C++. Everything is fine except when Flash invokes the executable, the console window shows up on top of the Flash program. Is there anything I could do to minimize or hide the concole window behind the main UI??



  2. #2
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    if you don't need to get user input, use winmain instead

    int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
                        PSTR szCmdLine, int iCmdShow)
    like create a windows program instead of a console program, and rip out the window creatiion code so you're just left with the main function.
    Last edited by the Wookie; 04-28-2003 at 06:27 PM.

  3. #3
    Registered User
    Join Date
    Apr 2003

    just to be sure

    Hi there,
    Thanks for the posting! Let me just make sure if I understand your suggestion here.

    For example I have a program written in C++ called report. Do you mean I put all the code in report.cpp at //program and recompile the program in Visual C++? If so, when specifying the project type in Visual C++, should it be Win32 application?


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MSVC++2008 console program portability
    By CodeMonkey in forum Windows Programming
    Replies: 1
    Last Post: 11-18-2008, 03:13 AM
  2. Convert console sorting program to GUI?
    By Djanvk in forum C++ Programming
    Replies: 1
    Last Post: 09-19-2008, 05:48 PM
  3. Console App., Hide specific folder
    By nextstep in forum C++ Programming
    Replies: 10
    Last Post: 03-28-2005, 05:28 AM
  4. How to hide cursor in a Linux/Unix console?
    By Aidman in forum Linux Programming
    Replies: 2
    Last Post: 09-01-2004, 02:25 PM
  5. Can I hide the slash in a console window?
    By Marcos in forum C Programming
    Replies: 3
    Last Post: 07-24-2003, 06:53 AM