Building GUI with C

  • Thread starter Thread starter Radith Silva
  • Start date Start date
R

Radith Silva

SORRY; I'M SURE IT'S THE WRONG FORUM; BUT I'M SURE Y'ALL WOULD KNOW THE
ANSWER!!!

Hi;

I was just wondering if you could build GUI's in C (original C). From
what I've seen, the programs made in C just run on DOS in it's command
prompt. I mean it doesn't pop out of DOS (like when you run IE) but all
programs are just command-line programs. But I'm sure you can build
programs with buttons and menus like you could with JAVA. Can you??
(with the original C)

ALSO; why do most say C (original) is the best language??

Cheers.

**What I mean by C is the original (NOT C# or C++)

Radith Silva
 
SORRY; I'M SURE IT'S THE WRONG FORUM; BUT I'M SURE Y'ALL WOULD KNOW THE
ANSWER!!!
I don't think that there is a newsgroup for C discussion at
news://msnews.microsoft.com
discuses you question at
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=comp.lang.c
I was just wondering if you could build GUI's in C (original C).
Yes, using Win32 API for windows you can do it.
ALSO; why do most say C (original) is the best language??
In terms of the program execution performance C is the best. But there are
other factors like maintainability, rapid development etc. which in favor of
C++, C#


-Manish
 
Radith

absolutely - yes you can! But to do so means that you would be restricted
to programming at the Win32 API and Platform SDK level. For many, that
restriction is a small price to pay, given the flexibility to work with no
framework or externally imposed boundaries. \

You are confusing console apps with programming in C - and those two are not
related. In fact, one can create console apps in VC++, VC, C#, VB.Net, etc.
There is a flag in the exe that determines whether the app gets a console
window by default, or is assumed to be a Win32 GUI app. That said, there is
nothing to stop one from calling RegisterClassEx in a console app, then
calling CreateWindow, implementing the class WindProc method, and then
implementing the message pump with a while(1), GetMessage and
DispatchMessage -- all this done in a console app (what you referred to as a
DOS program) and written in straight C code.

regards
roy fine

p.s. DOS apps were 16 bit applications. console apps today are full-blown
Win32 applications.
rlf
 
Manish Agarwal said:
I don't think that there is a newsgroup for C discussion at
news://msnews.microsoft.com
discuses you question at
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&group=comp.lang.c

Yes, using Win32 API for windows you can do it.

Why you would ever want that pain is a mystery.

I think very few people would say that actually.
In terms of the program execution performance C is the best. But there are

Not true at all. In general C++ is faster than C. Compare qsort against STL
sort, or printf against iostream.
 
Back
Top