I need to use win2D in my cppwinrt project. Using the Win2D sample file as a model I’ve tried to mimic its setup, putting in the package file for win2d from that project, duplicating the custom build step, but I can’t get it to compile. I remember some talk about Win2D being added soon to the standard cppwinrt headers so that it could be accessed like others of these wonderful cppwinrt interfaces. Is this something that might happen soon? Or does anyone have some really specific instructions for using Win2D in the current Visual Studio 2017 environment? I’m in the Insider preview program but haven’t seen anything come up. Thanks.
相关问题
-
Using winrt::com_ptr
with D3D11Crea - Xbox 360 Wireless Controller is not working via C+
- How can I simulate a DeviceLost event with Win2D?
- Getting “a function that returns 'auto' ca
- Access denied while saving image in UWP.Access is
相关文章
- How can I simulate a DeviceLost event with Win2D?
- Getting “a function that returns 'auto' ca
- Access denied while saving image in UWP.Access is
- Can C++/CX and C++/WinRT be used in the same proje
- Is there a way of getting ConnectionStatus from IV
- UWP:在RichTextBlock计算文本高度给出了怪异的结果(UWP: Compute text
- Win2D library: CanvasImageBrush paints using the C
- Errors on build creating a UWP cppwinrt SolidColor
As of the recent update, using Newget to install Win2D into a C++/WinRT project will automatically generate the headers and install them in "GeneratedFiles\winrt\"
Once you have downloaded Win2D and assuming you have the latest RS4 Windows SDK installed, you can simply use cppwinrt to generate the Win2D headers for consumption:
This will generate a winrt folder that contains the headers that you need to include in order to use Win2D. You will then need to add the parent folder to your include paths and ensure that the Win2D DLL is copied to your package or build output folder.