How to export data, functions, classes from C++/WinRT library

Harikrishnan V R 21 Reputation points
2021-04-08T11:22:33.387+00:00

Usually we are using dllexport/dllimport method for c++ libraries. Then a test application can use the dll implicitly/explicitly for accessing the dll functions.
And we can make use of .winmd files in the c++/winRT to access the classes, functions using a test application.

Then what is the difference between these two concepts?
Which one is better for a c++/WinRT library(dll).

Universal Windows Platform (UWP)
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,516 questions
{count} votes