Stupid question from a begineer

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
Shav
shavAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daniel Van Der WerkenIndependent ConsultantCommented:
Shav:

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.  

---Dan---
0
AaronReamsCommented:
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++).  

http://msdn.microsoft.com/vstudio/

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

http://msdn.microsoft.com/vcsharp/

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

http://msdn.microsoft.com/visualc/downloads/sample/default.aspx

Good luck,
Aaron


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.