Erich
Erich

Reputation: 11

How to create a C Program in a GUI window?

I have a bunch of simple programs that I would like to display in a GUI window rather than a DOS terminal. How can I accomplish this? Do I need to call upon a library or what? Thanks.

Upvotes: 0

Views: 2575

Answers (3)

e.t
e.t

Reputation: 21

you need to create a windows application project in your compiler, any compiler i know has that option, and include the windows.h library (#include ).

Upvotes: 2

curious
curious

Reputation: 1554

Have a look at the gtk library http://www.gtk.org and if you feel comfortable with c++ i recommend you wxwidgets GUI framework http://www.wxwidgets.org.

Upvotes: 0

templatetypedef
templatetypedef

Reputation: 373112

You will need to use a library to do this; the C language does not define any windowing or GUI constructs. Since you're talking about DOS terminals, I'm assuming that you're in Windows, and so you might want to look at the Windows API, which is a C library with all sorts of powerful windowing tools. You might also want to look at one of the many wrapper libraries that are layered on top of this API, like MFC or WPF.

Upvotes: 2

Related Questions