11-10-2022 05:30 AM
Hello
I'm using the c_dll_tdm to create a TDMS file in c#, and it works fine for a .Net Framwork 4.5 project. But if i try to use it in a .NET5 project. The function DDC_CreateFile return a DDC_StorageCouldNotBeOpened error.
If try to create an existing TDMS file, the error code changes to DDC_FileAlreadyExists error.
Any Idea?
JC.
Solved! Go to Solution.
11-17-2022 01:31 AM
access_ni_tdm_c_dll_with_dot_net
uses pinvoke-interop-assistant to create a .net wrapper.
At least when I created the code I run it with .net 5 (Core) which worked.
Maybe it hels somehow.
Greetings
Andreas
11-18-2022 10:10 AM
I created my own wrapper and works as expected.
Thanks.