Y
Y
yll32014-01-01 19:13:32
User interface
yll3, 2014-01-01 19:13:32

How to create a graphical user interface for a program?

How to create a graphical user interface for a program?
Suppose I wrote a calculator, everything works in the console, everything is fine. And now how can I make buttons, fields, etc. for this program?
Where to begin?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
AxisPod, 2014-01-01
@AxisPod

To begin with, they would indicate the OS and requirements, whether cross-platform is needed.
For Windows: WinAPI, MFC, WTL
For nix (they are also cross-platform): GTK+, QT, wxWidgets
If you want more, look, you will find.

P
Peter, 2014-01-01
@SeNaP

WinAPI.
In general, you can throw in a form in Visual Studio and bind events to each button.

N
Nikolai Turnaviotov, 2014-01-01
@foxmuldercp

In general, c++ is considered a "low-level" language for working with hardware, drivers, and performance optimizations.
It is more difficult to write a gui in it than in C#, which is considered a more "simple" top-level language, access from which to the lower levels of hardware is directly difficult.
But no one bothers to make a library out of your code that can be connected from the winforms / wpf graphical application and pull the necessary functions from there.

A
afiskon, 2014-01-02
@afiskon

eax.me/wxwidgets for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question