04-19-2006 06:24 PM
04-20-2006 02:42 AM - edited 04-20-2006 02:42 AM
More likely you are referencing the file name to pass, indirectly from the current VI. This path is not exactly the same in a built application than in the development environment. While the development path of a VI will be reported as <your dir>/<VI name>.vi in an executable you get <app dir>/<app name>.exe/<VI name>.vi.
@Togos wrote:Hi AllI have this VI (program) that calls a dll wrapper which calls a dll. The parameter that I am passing is the "path" and a data (txt) file that I am going to be parsing inside the DLL. Everything work fine when I use the LabView development package. However, when I build an .exe and I try to run this .exe I get an error message from the dll saying that it got an error parsing the file.I check to make sure my dlls are all there and they are.Does anyone has a clue on what is going on? Did the building of an exe change my data type?
Message Edited by rolfk on 04-20-2006 09:42 AM
04-20-2006 11:23 AM
Thank you for your answer.
Yes, I am aware of this "exutable path" which is different to my development path however I connected probes(displays) just before DLL icon (function) and I can see the path going into the DLL stays the same than the development path.
And I have the files (Dlls, Txt) and both exe path and development.
Am I overlooking something?
Tanks
04-20-2006 02:09 PM
04-21-2006 04:21 PM
Actually, the exe is finding the DLL this I can verify. The problem is I am passing a string to the call node (which is a DLL but a wrapper) this wrapper pass it to 2nd DLL. The string is a pointer that supposely point to the path where my .txt file that we are going to parse.
The problem is: It does not find the txt file Some how is pointing to some place else.
Thanks
04-24-2006 05:12 PM