By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,369 Members | 1,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,369 IT Pros & Developers. It's quick & easy.

console & form

P: n/a
I am currently working on a program that either works in a GUI or via
console depending on what is passed in arguements at runtime. However,
every time it is ran in GUI it still opens a console window and leaves it
there until the program is closed. Does this happen simply because I am
reading in arguements or could it be because I originally set the solution
up as a console program? If it is because of how I set the solution up is
there a setting some where I can change to stop this?

Thanks!

Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
If I change the project type to a windows application it gets rid of the
console window, but then I can't output text to the console if the user does
run the program via the command line. How can I output lines to the console
if the program was started via the command line?
"David A. Osborn" <do********@hotmail.com> wrote in message
news:DQUCe.185483$xm3.183774@attbi_s21...
I start the program with a module that checks for command line arguements.
If there are none, or there is a -s then it displays the form, otherwise it
process based on the other command line arguements. For some reason though
it opens up a console immediately and I'm guess it has something to do with
the fact that when I originally setup the program I set it up as a console
program.
"Rothariger" <Ro********@msn.com> wrote in message
news:0F**********************************@microsof t.com...
one question, if you determine wich one to open with the argument, with
what
do you start the solution? with the frame? with the console? or with a
module?

i think the best way could be the module, so you choose to open the
console
or the window... but i never did that.... so im just talking...

"David A. Osborn" wrote:
I am currently working on a program that either works in a GUI or via
console depending on what is passed in arguements at runtime. However,
every time it is ran in GUI it still opens a console window and leaves
it
there until the program is closed. Does this happen simply because I am
reading in arguements or could it be because I originally set the
solution
up as a console program? If it is because of how I set the solution up
is
there a setting some where I can change to stop this?

Thanks!



Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.