Stupid question from a begineer

Posted on 2004-11-24
Last Modified: 2010-04-17
Hi all,
        I've often written simple programmes in C and everytime I run them it's via a DOS looking window. Now this looks a bit dated to me and I was wondering what language do i need to know so that I can have a fancy windows looking GUI where you fill in the input values into a box. Is it possible to incorporate the original C code somehow. Stupid question but we all gotta start somewhere! Cheers
Question by:shav
    LVL 19

    Expert Comment

    by:Daniel Van Der Werken

    To have a fancy windows-looking program, you need to write a windows C program.  It will have a WinMain() function, a ton of create windows structure stuff, and a messge loop that sends windows messages to your program along with a standard default windows procedure called WinProc().

    There are a ton of books out there on how to do this. You'll need a C compile that has or knows about the Windows programming environment to include the windows.h file, and library files.  This is quite a large thing to do.

    In the meantime, a simple C program written without all of this will run in a console window (DOS box).  Most of the C programs i write *for* windows are console apploications as they need to do things in the background and a display is not important.  

    The topic of windows programming is extremely vast and complex.  

    LVL 8

    Accepted Solution

    Hi Shav,

    What compiler are you using?  You should install Visual Studio 6 or Visual Studio .NET if you want to easily create windows applications.  All of the code to create a simple windows application is automatically generated for you.   You just have to add the features you want

    If you use Visual Studio 6 you will want to create an MFC project (c++).

    If you use Visual Studio .NET you can create an MFC project (C++) or WinForms project (C#).

    There are also a lot samples available to show you how to make robust windows programs.

    Good luck,


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: HTML5 Mobile App Development with PhoneGap

    PhoneGap can help you leverage your already existing HTML5, JavaScript, and CSS skills in order to create and deploy cross-platform mobile apps.This program comprehensively covers HTML5 mobile app development from top to bottom.

    Suggested Solutions

    This article will show, step by step, how to integrate R code into a R Sweave document
    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.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    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…

    759 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

    11 Experts available now in Live!

    Get 1:1 Help Now