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,603 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,589 Views)

Good to know it works that way.

Thanks for help 🙂

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