LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't build .exe with Windows .dll call.

Solved!
Go to solution

Trying to build an executable, but I seem to have an issue with a Windows .dll.  I've tried adding a copy to the source directory, and adding it to the project file, but it still has a permission error as it is going to the Windows path to attempt to copy.  Moving the project to a network drive didn't help either.

 

Build Error.PNG

0 Kudos
Message 1 of 3
(2,409 Views)
Solution
Accepted by KipK12

Hmm.. abstracting the .dll path fixed it.  The .vi with the problem is a NI Verified example I found here: https://forums.ni.com/t5/Example-Programs/Using-Windows-DLL-s-to-get-User-s-Name-Using-LabVIEW/ta-p/...

 

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

I believe that using an explicit path will cause LabVIEW to attempt to copy said dll to the data folder, but using relative paths (or even just the dll name itself, if it's been registered), it won't.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 3
(2,338 Views)