Open
Description
As currently presented, the boxes of example code shown on this webpage, that are intended to be copied and pasted into your Visual Studio project template, cannot be copied "as is". If you do copy all of the box's code (by clicking the provided widget) and paste it into the files provided by the Visual Studio template, you'll have to edit the result to get the desired and correct code.
A better method is used at the following link, which provides example code that can be copied and pasted "as is" without the need to edit the result:
https://docs.microsoft.com/en-us/cpp/windows/walkthrough-creating-windows-desktop-applications-cpp?view=msvc-160
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 3ed62e90-9a85-e295-69ac-7af08123e024
- Version Independent ID: b740841d-6530-d774-0f68-dcd356f9adb5
- Content: Create a 'Hello, World!' app using C++/WinRT - UWP applications
- Content Source: windows-apps-src/get-started/create-a-basic-windows-10-app-in-cppwinrt.md
- Product: uwp
- Technology: get-started
- GitHub Login: @QuinnRadich
- Microsoft Alias: quradic