Answer the question
In order to leave comments, you need to log in
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
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.
WinAPI.
In general, you can throw in a form in Visual Studio and bind events to each button.
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question