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)?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,367 questions
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
725 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,233 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,118 questions
{count} votes