can you create a UI with C++?

Hidy ho all,

my word its been some time since I was here last.

I was curious about something. Can you use C++ to create a user interface, like you can in Java?
closed account (E0p9LyTq)
Yes, a GUI can be created using C++.

You need a C++ framework, such as the Windows API or Java API, or a cross-platform GUI library. There is no way to create a GUI with just core C++. It is not designed for that.
You can use a library such as Qt or wxWidgets.
There is no way to create a GUI with just core C++.
If you make past all layers of abstractions modern OS place between user programs and hardware, you can interact directly with device and draw what you want. Or just install older OS (e.g. DOS) in VM and play with it there.

To already suggested frameworks I would like to add FLTK: It is lightweight and cross-platform. It is even has own WYSIWYG editor called FLUID.
I'm using SFML.
http://sfml-dev.org/
Last edited on
It is possible to use multimedia/game libraries such as SFML or SDL to build a GUI, but note that these libraries don't come with GUI classes and functions ready to use so you would have to build the GUI pretty much from scratch, or use additional libraries.
closed account (E0p9LyTq)
MiiNiPaa wrote:
If you make past all layers of abstractions modern OS place between user programs and hardware, you can interact directly with device and draw what you want. Or just install older OS (e.g. DOS) in VM and play with it there.


You are correct, I failed to clarify my statement by mentioning writing a UI is no easy task.
Topic archived. No new replies allowed.