08-08-2008 11:14 AM
08-10-2008 12:41 AM
To CIM1 -
TestStand does set the current working directory and typically tries to reset it back when load a DLL, and I think when calling code modules. Other modules could also set this directory. I would not recommend relying on the current working directory in any application, especially TestStand, because there are too many players that could mess with it. CVI has a nice function to get the path of the DLL that you can use to build the path to find a file in the same directory of the DLL. This is what I have used in the past.
char modulePath[MAX_PATHNAME_LEN];
GetModuleDir (__CVIUserHInst, modulePath);
Hope this helps.
08-10-2008 08:24 AM