01-19-2018 03:26 AM
I made a simple dll with Labwindows/CVI same years ago.
This DLL is located in the program folder and loaded from my cvi program; everything works fine.
Also I load the dll from a Excel Makro to use 3 exported functions.
This worked fine on XP and also on WIn7-32 and WIN7-64.
Now we want to use it on WIN-10 systems and it dosn't work on all this systems:
The CVI program normaly loads and uses the dll.
But the macro can't load or use the dll functions.
The error is "File not found", but the dll is in the right (same) directory.
If I take the folder identical to my WIN7-64 system it works.
Who can help me:
What changed in WIN10 for loading dll?
What can I do ?
01-22-2018 08:49 AM
Hi,
building dlls that will work in Windows 10 is supported in CVI 2015 and later.
Kompatibilität von NI-Produkten mit Microsoft Windows 10 - National Instruments
http://www.ni.com/white-paper/52818/de/
If you have created your dll with a CVI Version prior to 2015 it is not supported in Win10.
Best wishes
01-24-2018 05:17 AM
Dennis thanks for your answer.
I was reading this whitepaper.
The question is, why other aplications like a C++ command line program are able to call the dll functions, but the macro can't do this ?
What makes the difference in WIN10 ?
01-24-2018 05:20 AM - edited 01-24-2018 05:22 AM
Excel calls different to a comand line entry.
For details about how a command Line promt differs to Excel you should ask Microsoft directly.
Compile the DLL with a Windows 10 compatible CVI Version and it should work fine.
01-26-2018 05:50 PM
The problem is likely that you have a 64 bit version of Office installed. The LabWindows CVI DLLs are however 32 bit. A 64 bit application CANNOT load a 32 bit DLL.