It's a console app, so of course it going to open a console if you double
click it from windows explorer. Open a DOS Prompt window
(Start->Run->cmd.exe), then run your console app, and no console window
opens.
"Ram" <(E-Mail Removed)> wrote in message
news:782CDB40-65A3-4A79-93AA-(E-Mail Removed)...
>I have a console application that brings up a dialog if invoked with no
> command line parameters. If I double click on my application a console
> window
> is briefly displayed before the dialog appears (I have this code in my
> app:
>
> if (args.length ==0) FreeConsole() which causes the console to be closed)
>
> Is there a way to prevent this console window from appearing in the first
> place.
|