Console application

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • esha

    Console application

    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)


  • Jeff Dillon

    #2
    Re: Console application

    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" <esha@newsgroup s.comwrote in message
    news:%23h4OxGF2 GHA.4632@TK2MSF TNGP03.phx.gbl. ..
    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)
    >
    >

    Comment

    • Arne Vajhøj

      #3
      Re: Console application

      esha wrote:
      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

      Comment

      • Samuel R. Neff

        #4
        Re: Console application


        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


        ------------------------------------------------------------
        We're hiring! B-Line Medical is seeking Mid/Sr. .NET
        Developers for exciting positions in medical product
        development in MD/DC. Work with a variety of technologies
        in a relaxed team environment. See ads on Dice.com.




        On Thu, 14 Sep 2006 19:01:18 -0400, "esha" <esha@newsgroup s.com>
        wrote:
        >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)
        >

        Comment

        • Jon Skeet [C# MVP]

          #5
          Re: Console application

          esha <esha@newsgroup s.comwrote:
          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?

          --
          Jon Skeet - <skeet@pobox.co m>
          http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
          If replying to the group, please do not mail me too

          Comment

          Working...