LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does File Dialog change directory information?

Currently, my dll is looking in the directory of my last saved file in Labview after file dialog box. I want my dll to look in the same directory that it is in. Is there some way to prevent Labview from passing that pointer to my dll telling it where to look. Alternatively, is there a way to force Labview back to the VI's home directory and pass that to the dll. I want to use relative paths in the dll and I don't want to hard code the location into the dll.
0 Kudos
Message 1 of 2
(2,426 Views)
Use the Current VI's path constant...(found under constants on the file palette) or find the path of any VI by opening a reference to it and read the path property...then split and build the correct path - that way it's hard-coded...but it will always be the correct path no matter where the VI is.
0 Kudos
Message 2 of 2
(2,426 Views)