Weevil Posted September 9, 2020 Share Posted September 9, 2020 Hi all, i used the Analog Discovery for some projects in python. Now i would like to switch the environment to .net UWP. Unfortunately, as i got, the standard dwf.dll can not be used in uwp. Is there any possibility to use the AD2 in an uwp project? Link to comment Share on other sites More sharing options...
attila Posted September 10, 2020 Share Posted September 10, 2020 Hi @Weevil You can find the CS and VB wrappers in WF SDK/ samples/ cs and vb Link to comment Share on other sites More sharing options...
Weevil Posted September 10, 2020 Author Share Posted September 10, 2020 Hi @attila thank you very much for your quick response! For standard WPF and WinForms project this works fine. For my uwp application this does not work and i run into an exception. As i read in the microsoft documentation the .dll needs to be compiled as "uwp dll". Would that be possible? Or is there another option? https://docs.microsoft.com/en-us/cpp/porting/how-to-use-existing-cpp-code-in-a-universal-windows-platform-app?redirectedfrom=MSDN&view=vs-2019 Link to comment Share on other sites More sharing options...
attila Posted September 11, 2020 Share Posted September 11, 2020 Hi @Weevil I wanted to try interfacing UWP with the dll, installed UWP (10GB) but enabling developer mode in Win10 fails... The dwf.dll exposes C API and it is build with VS2008 for backward compatibility. Does the following help?https://stackoverflow.com/questions/33489924/can-you-use-c-dlls-in-c-sharp-code-in-a-uwp Link to comment Share on other sites More sharing options...
Weevil Posted September 13, 2020 Author Share Posted September 13, 2020 Hi @attila thank you so much for your effort! I tried to do so, but the dwf.dll can not be found. Now i started a post at stackoverflow and uploaded an example project. https://stackoverflow.com/questions/63875883/use-dll-from-analog-discovery-in-uwp Link to comment Share on other sites More sharing options...
Question
Weevil
Hi all,
i used the Analog Discovery for some projects in python. Now i would like to switch the environment to .net UWP. Unfortunately, as i got, the standard dwf.dll can not be used in uwp. Is there any possibility to use the AD2 in an uwp project?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.