As you go, you'll enter the code for a working Windows desktop application. Don't worry, we don't do anything too complicated.įollow these steps to create your first Windows desktop project. For an introduction, see Visual Studio IDE feature tour.Īn understanding of enough of the fundamentals of the C++ language to follow along. If you've used Windows desktop apps before, you can probably keep up. You can run the installer again and install it now.Īn understanding of the basics of using the Visual Studio IDE. Don't worry if you didn't install this workload when you installed Visual Studio. When you run the installer, make sure that the Desktop development with C++ workload is checked. For information on how to download and install Visual Studio, see Install Visual Studio. We recommend Windows 10 or later for the best development experience.Ī copy of Visual Studio. PrerequisitesĪ computer that runs Microsoft Windows 7 or later versions. The Build the code section at the end of this document shows the complete code. There are many ways to create Windows applications, but the process above was the first.įor the sake of brevity, some code statements are omitted in the text. For more information about the Windows API, see Windows API Index. Even the most modern Windows Runtime code for UWP and Store apps written in C++/WinRT uses the Windows API underneath. More advanced and easier-to-program frameworks have been built on top of the Windows API. It has been in existence since the 1980s and has been used to create Windows applications for decades. 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. You can use the code that you develop in this walkthrough as a pattern to create other Windows desktop applications. The example application you'll create uses the Windows API to display "Hello, Windows desktop!" in a window. This walkthrough shows how to create a traditional Windows desktop application in Visual Studio. Walkthrough: Create a traditional Windows Desktop application (C++)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |