This walkthrough shows how to create a traditional Windows desktop application in Visual Studio. The example application you'll create uses the Windows API to display 'Hello, Windows desktop!' in a window. You can use the code that you develop in this walkthrough as a pattern to create other Windows desktop applications.
-->
The Windows API (also known as the Win32 API, Windows Desktop API, and Windows Classic API) is a C-language-based framework for creating Windows applications. It has been in existence since the 1980s and has been used to create Windows applications for decades. More advanced and easier-to-program frameworks have been built on top of the Windows API. For example, MFC, ATL, the .NET frameworks. Even the most modern Windows Runtime code for UWP and Store apps written in C++/WinRT uses the Windows API underneath. For more information about the Windows API, see Windows API Index. There are many ways to create Windows applications, but the process above was the first.
Important
For the sake of brevity, some code statements are omitted in the text. The Build the code section at the end of this document shows the complete code.
Aug 27, 2015 There are various ways (in decreasing order of suitability):. QT - cross platform. wxWidgets - cross platform. Use VCL with Embarcadero Cbuilder - cross platform. GTK - crossplatform. Use native Win32, MFC or WTL - Windows. XLib for Lin.
Prerequisites
Create a Windows desktop project
Follow these steps to create your first Windows desktop project. As you go, you'll enter the code for a working Windows desktop application. To see the documentation for your preferred version of Visual Studio, use the Version selector control. It's found at the top of the table of contents on this page.
To create a Windows desktop project in Visual Studio 2019
Your project is now created and your source file is opened in the editor. To continue, skip ahead to Create the code.
How To Create Gui In Dev C++To create a Windows desktop project in Visual Studio 2017
Your project is now created and your source file is opened in the editor. Cooking dash full version free download for android. To continue, skip ahead to Create the code.
To create a Windows desktop project in Visual Studio 2015
Your project is now created and your source file is opened in the editor.
Create the code
Next, you'll learn how to create the code for a Windows desktop application in Visual Studio.
To start a Windows desktop application
To add functionality to the WinMain function
To add functionality to the WndProc function
Build the code
As promised, here's the complete code for the working application.
To build this example
Congratulations! You've completed this walkthrough and built a traditional Windows desktop application.
See alsoComments are closed.
|