Hi
I am creating a new UWP app on windows 10 and I want to call functions from C++ DLL. Can anyone please tell me process to include the DLL in my UWP project and how do I call the C++ functions from C# UWP app?
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Milan PrajapatiPosted Oct 20, 2016, 8:42 AM
You need to make sure your Python dll is not using prohibited APIs in WinRT. You can check this by using /ZW compile option for the dll.Add win32 dll into your UWP project making sure to set its type as 'content'
Then in the proper cs file, using DllImport to PInvoke the dll.