console & form

  • Thread starter Thread starter David A. Osborn
  • Start date Start date
D

David A. Osborn

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!
 
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...
 
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.
 
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top