Using Native C++ dll in Unity

Hi, I am new to Unity and C++ and C#. I have a UWP component (C++) I want to use in my Unity project through C# scripts. I am thinking the best way to do this is by taking the UWP component and building a dll from Visual Studio. To practice I wrote and generated a managed DLL following a tutorial and imported and used it in Unity. However, the code I want to access produced a native dll and I am unsure how to use that in Unity. So either how do I convert a native dll to a managed dll, or how do I use a native dll in Unity?

Thanks.

Use SWIG wrapper. But beware of cpp method name mangling.
You need to compile the code with
-Wl,--kill-at compiler flags,
CFLAGS="-O -arch i386" CXXFLAGS="-O -arch i386" LDFLAGS="-arch i386" --disable-dependency-tracking compiler flags,
and try extern ā€œCā€ and Calling Convention [ cdecl, stdcall] directives.