LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when calling a DLL function

Hi,
I am using external C++ code with labView. One of the DLL functions I use serves to call files. The directory and the name of the file is is passed as a parameter for this function. When the VI is running and arrives at this function (I use the Calling Library Function Node tool), the following message is displayed:
ERREUR de type class boost::filesystem::filesystem_error.
boost::filesystem:ath: invalid name "D:\Documents Johan\Johan\Stitching\Fichiers de mesure\front parfait\13z2" in path: "D:\Documents Johan\Johan\Stitching\Fichiers de mesure\front parfait\13z2"
I do not know why this message is sent to me.
 
Thanks for your answer
 
JF
0 Kudos
Message 1 of 2
(2,321 Views)
Hello,

How are you passing the file path to the DLL -- are you passing it as a string?  If you are passing at as a string, I would do some basic console output to make sure that your DLL is receiving the file path corectly as a string and perform your appropriate C++ function in your DLL.  If the error is occuring with passing the file path you might want to check out the links below for a little more information on this.

http://zone.ni.com/devzone/conceptd.nsf/webmain/7d6a20fe02edbf318625690700704cf3#4
http://digital.ni.com/public.nsf/websearch/4E9234BA4C7C4ABE86256E3C0074760F?OpenDocument
http://digital.ni.com/public.nsf/websearch/3B994675B17C654A86256FDD00754DD2?OpenDocument

Hope this helps,

Travis M
NI
Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 2
(2,311 Views)