Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SimpleDirect2DApplication for Visual Studio 2022 #366

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- <SnippetDeclareDPIAware_manifestWholePage> -->
<!-- THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

Copyright (c) Microsoft Corporation. All rights reserved -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
<dpiAware>true</dpiAware>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
<!-- </SnippetDeclareDPIAware_manifestWholePage> -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
page_type: sample
languages:
- cpp
products:
- windows-api-win32
name: Simple Direct2D Application
urlFragment: simple-direct-2d-application
description: Draws shapes, text, and images with Direct2D.
extendedZipContent:
- path: LICENSE
target: LICENSE
---

# Simple Direct2D Application

Draws shapes, text, and images with Direct2D.

This sample is written in C++.

## Files

* **SimpleDirect2dApplication.cpp**: Contains the application entry point and the implementation of the `DemoApp` class.
* **SimpleDirect2dApplication.h**: The header file for the DemoApp class.
* **SimpleDirect2dApplication.sln**: The sample's solution file.
* **SimpleDirect2dApplication.vcproj**: The sample project file.

## Prerequisites

* Microsoft Windows 10
* Windows Software Development Kit (SDK) for Windows 10 and .NET Framework 3.5 Service Pack 1

## Building the Sample

To build the sample using the command prompt:

1. Open the Command Prompt window and navigate to the sample directory.
2. Type **msbuild SimpleDirect2dApplication.sln**.

To build the sample using Visual Studio 2008 (preferred method):

1. Open Windows Explorer and navigate to the sample directory.
2. Double-click the icon for the *.sln* (solution) file to open the file in Visual Studio.
3. In the **Build** menu, select **Build Solution**. The application will be built in the default *\Debug* or *\Release* directory.
Loading