Re: Console application



On Thu, 10 Sep 2009 10:18:23 -0700, James <james@xxxxxxxx> wrote:

I have a simple console application. When it starts it opens a dos box until
termination.
Is it possible and how to eliminate the dos box, leaving the rest
functionality.

Does it really need to be a console application, and if so, how are you starting it?

Normally, the window would go away on its own. But a shortcut to the process can be set to leave the window open, and if I recall correctly there are other ways to control that as well.

If you can avoid making the program a console application, that's obviously the best solution. But otherwise, you should look into whatever is causing the window to stay in the first place.

Pete
.



Relevant Pages

  • Re: working set and console applications
    ... I created a windows application and then I created a child console process ... that I started from the parent process using CreateProcess. ... I minimize the child console window it also causes the working set of the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Console applications window size
    ... AllocConsole() or AttachConsole. ... You already have a console, ... SMALL_RECT srWindowRect; // hold the new window size ... >exe from a cmd prompt, the same cmd prompt gets bigger properly. ...
    (microsoft.public.vc.language)
  • Re: How to minimize command mode window in console program?
    ... to set some property to minimize the console window. ...     ByVal hWnd As IntPtr, ...     End Sub ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Prevent Domain Users From Browsing Around in Active Directory?
    ... View, Customize, uncheck everything except the top one that says Console ... But they will have the rt-click feature. ... Rt-click on that OU, new window from here. ...
    (microsoft.public.windows.server.active_directory)
  • Re: vb6 run from and output to command window
    ... VB doesn't really create true console applications (because the linker ... allocate the console window, and read/write from/to it. ... Private Declare Function AllocConsole Lib "kernel32" As Long ... Dim lResult As Long ...
    (microsoft.public.vb.general.discussion)

Loading