LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI - Windows 10 - can't load DLL with VBA

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 ?

 

 

0 Kudos
Message 1 of 5
(3,362 Views)

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

--------------------------------------------------------------------------------------------------------
Work with NI Hard- and Software for about 15 years now.

Certified LabVIEW Developer & TestStand Developer/Architect

--------------------------------------------------------------------------------------------------------

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 2 of 5
(3,328 Views)

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 ?

 

 

0 Kudos
Message 3 of 5
(3,309 Views)

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.

 

 

--------------------------------------------------------------------------------------------------------
Work with NI Hard- and Software for about 15 years now.

Certified LabVIEW Developer & TestStand Developer/Architect

--------------------------------------------------------------------------------------------------------

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 4 of 5
(3,307 Views)

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.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 5 of 5
(3,285 Views)