From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

path for windows dll

Solved!
Go to solution

Hello,

 

I want to specify where my app will look for windows dll.

I have found this article:

http://digital.ni.com/public.nsf/allkb/862567530005F09C862565C50068363D

But I cant add path like that: <Windows>\System32

And thats problem because system can be installed on diffrent disks.

 

I could make builder to copy desired dll to its data directory but this causes my application to crash..

0 Kudos
Message 1 of 3
(2,354 Views)
Solution
Accepted by topic author pawel.ostrogorski

If your DLL is located in the <Windows> or <System> directory just configure the Library Path in the Call Library Node to only specify the DLL name without any path. This will make LabVIEW call the Windows API LoadLibrary() with that name only and Windows will search for that DLL in those places with whatever are the correct paths for the current system.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(2,340 Views)

Good to know it works that way.

Thanks for help 🙂

0 Kudos
Message 3 of 3
(2,325 Views)