Y
Y
yuriyshumovskiy2017-06-09 17:00:34
C++ / C#
yuriyshumovskiy, 2017-06-09 17:00:34

How to translate C++ libs to UWP (Universal Windows Platform) C#?

There is an application that needs to be ported to UWP, it has libraries in C # (.NETFramework 4.6.1) and C ++ / CLI in its dependencies. Plus libraries also depend on some sharp libraries.
C# libraries are rebuilt as Universal Windows Class Library and work.
C++/CLI targets .NETFramework and the libraries built in this way are not supported by the UWP application, you can’t target .NETCore and they say on github that C++/CLI support on .NETCore is not planned.
2) Another possible option is to build C++ libraries as Windows Runtime Components, but then only other WRC libraries can be added to them, rebuilding C# libraries with Class Library as Windows Runtime Component gives a bunch of errors and limits functionality.
How can this problem be solved, or how is it generally better / should libraries with such cross-dependencies be built?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bashinsky, 2018-02-22
@BashkaMen

DllImport
With this you can call functions knowing their signature and name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question