I'm starting to program for windows using c ++ and the DevC ++ program. How do I create a common window?
I'm starting to program for windows using c ++ and the DevC ++ program. How do I create a common window?
I recommend searching for QT, which is a cross-platform framework for developing graphical interfaces in C ++. With it you can make programs that work on both Windows and Linux and MacOS. If you want to learn about QT, there are several tutorials on the internet, in various forums or even the Stackoverflow in the "QT" tag.
Also check out the official QT website ( link ) and see all its possibilities.
You can follow this tutorial using Windows API but it is not recommended because it is limited, ideal would be to use Qt since it is multiplatform, has many features for window creation including a visual editor, it supports OpenGL, DirectX and Vulkan , it still uses Windows API (If the target platform is windows of course).
Here is an example of the main window of my program using qt and its visual editor:
In C ++ you do not have a native window toolkit. Each provider has one, and has a few free ones. You can try the Qt that is well-publicized.