Console application

  • Thread starter Thread starter esha
  • Start date Start date
E

esha

What is the use of Concole app? I see a lot of samples on Internet. I
download, I run, I see a Dos screen for a portion of second and that's it.
Is it worse to create a Windows form app to demonstrate something?

Thank you

Esha (abs beginner)
 
Um, be careful about downloading and running apps from the Internet!

Personally I like using a Windows form app, with a single button, to test
something

Jeff
 
esha said:
What is the use of Concole app? I see a lot of samples on Internet. I
download, I run, I see a Dos screen for a portion of second and that's it.
Is it worse to create a Windows form app to demonstrate something?

Console apps can be used as server apps.

They are very rare as client apps today.

But they are often used for demo code, because
the "overhead" of a console app is much less than of
a Win Form app. So it is easier to post a complete
working example but still focus on the main point.

Arne
 
Typically you want to run a console app from a console. :-) Run
"cmd.exe" and then run the app and you'll actually the results.

We use a lot of console apps for utilities that we can then schedule
to run at a certain time or for tools that we want to run from a
command line. Some things are just easier to do with a command line
than a gui.

Sam
 
esha said:
What is the use of Concole app? I see a lot of samples on Internet. I
download, I run, I see a Dos screen for a portion of second and that's it.
Is it worse to create a Windows form app to demonstrate something?

I can write a console app to demonstrate something in very few lines.
When I post it on a newsgroup, there's no extraneous code creating a
form, adding a button to it etc - people can concentrate on just the
code that's interesting.

If you don't *need* a GUI, why waste code having one?
 

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

Similar Threads


Back
Top