Solved windows app vs console

Posted on 2009-04-21
Last Modified: 2013-12-27
Can anyone tell me the main differences pros/cons of writing a server application(just a simple tcp/ip type app) in the console vs the windows way?

I am lacking the good vs bad on console vs window all together.

Question by:aumudin
    LVL 9

    Expert Comment

    by:Sreedhar Vengala
    If you app expects some form for input at runtime - Window app is prefered.

    Console app is program with access to three basic data streams: standard input, standard output, and standard error. Console applications are light weight programs run inside the command prompt (DOS) window. They are commonly used for test applications.

    Windows Forms is the name given to the graphical user interface application programming interface (API) included as a part of Microsoft's .NET Framework,
    providing access to the native Microsoft Windows interface elements by wrapping the existing Windows API in managed code
    LVL 4

    Author Comment

    So there is no really added benefit for doing console vs windows forms as far as speed goes all my app does is receive info from tcp/ip connection and inserts it into SQL
    LVL 3

    Accepted Solution

    Nope there isn't and what's more, if that is all your application does you will probably do well to write it as a windows service rather than a console application. There seems to be no reason for having a GUI so windows forms/WPF is really out of the question.

    One of the benefits of a service is that it can start running automatically after booting without anyone having to log on and manually start it.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, ( because one time I did this and I essentially had a bricked …
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now