Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to design GUI Applications with C? [closed]

I always find good tutorials on the subject, but it almost always is C++. Is it hard or just doesn't make sense to make GUI applications with C?

A good book, guide or a tutorial is fine.

Platform: Linux

like image 980
0xdeadbeef Avatar asked Apr 17 '10 14:04

0xdeadbeef


People also ask

Can you make a GUI with C?

A C compiler itself won't provide you with GUI functionality, but there are plenty of libraries for that sort of thing. The most popular is probably GTK+, but it may be a little too complicated if you are just starting out and want to quickly get a GUI up and running.

What is the best GUI for C?

Use GTK+. It's written in C and exposes a well-designed C API. Their tutorial is quite excellent. GTK+ is the toolkit for GNOME, so your applications will fit right in with many Linux desktops.

Can we make GUI in C++?

To develop C++ GUI or C++ graphical user interface application, you need an IDE that supports the C++ GUI application. To create the GUI app, you must use Visual Studio 2019 because it is better suited for the C++ GUI application.


2 Answers

Use GTK+. It's written in C and exposes a well-designed C API. Their tutorial is quite excellent.

GTK+ is the toolkit for GNOME, so your applications will fit right in with many Linux desktops.

like image 64
Michael Ekstrand Avatar answered Sep 20 '22 14:09

Michael Ekstrand


If you are programming in C on Windows - Petzold's programming windows used to be the bible for C based ui work.

EDIT: Since I answered my question the post has been updated to be on Linux. I will leave the post here for anybody looking, but it really does not apply to Linux.

like image 40
Romain Hippeau Avatar answered Sep 21 '22 14:09

Romain Hippeau