Matt Siegel wrote:
> Hello,
>
> I currently have a VI that relies heavily on DLL calls (call library
> function). When specifying the location of the DLL, i give LabVIEW the
> path to my INSTR.LIB directory, and everything works fine. My problem
> occurs when I want to distribute the application to clients, and they do
> not have LabVIEW installed in the same place as I do, that is, "C:\Program
> Files\National Instruments\LabVIEW\Instr.Lib" is not their instr.lib
> directory. Is there a built in envornment variable that i can use instead
> of a hardcoded path in my DLL calls that points to the instr.lib
> directory, or just the directory where labview.exe resides?? Thanks in
> advance.
>
> -Matt Siegel
I have not used the CLF much, but here are some thoughts.
Since this is a WinX platform, could you put the DLL in C:\Windows somewhere
and
hard code to that ?? This directory structure should be stable.
You could try putting the DLL in the same dir as the VI and hardcoding to
..\mydll.dll
Dont know if this will work though.
There are a few built in path functions (look in the File I/O palette) one VI
Library
will point to the directory where vi.llb is installed. This should be one
level deeper
than the labview.exe
After looking at this it seems unreasonable that you should have to hardcode
the path
to the DLL. I suppose that is what happens when you make assumptions about
how
your tool will be used.
Kevin Kent