WHAT IS THE PROPER WAY TO CODE A CLASS LIBRARY, IN VISUAL STUDIO 2022 PREVIEW (or 2019), THAT NEEDS TO USE C++ (to access DWriteCore) FROM MANAGED CODE (C#) ?

Kenny Brown 51 Reputation points
2021-10-05T06:53:03.853+00:00

WHAT IS THE PROPER WAY TO CODE A CLASS LIBRARY, IN VISUAL STUDIO 2022 PREVIEW (or 2019), THAT NEEDS TO USE C++ (to access DWriteCore) FROM MANAGED CODE (C#) ?

Is DWriteCore just for CPP apps?

Will a Managed Code implementation of the interface be coming in the future?

I need to get font information, and this interface has the functions and controls, and I'm using WinUI 3 Desktop, Windows App SDK (WindowsAppSDK - Experimental) , Visual Studio 2022 Preview.

I just need to know, since my app needs access to system font information (collections) - Am I - forced to go entirely CPP (looks to be), partial CPP - partial C#, or can I go entirely C# (preferred)?

Windows development | Windows App SDK
Developer technologies | .NET | .NET Runtime
Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.