LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the problem about calling .dll function

Dear All,
When I use call library function node to call a .dll function, but it cannot run. i don't know if the .dll function statement was shown as below and atach the program to your reference. Iit is very easy. I think i set wong the parameter type. But i cannot find it. would you please help me?Thanks!
 

flReadProgramFiles


int flReadProgramFiles(
    char * filename
);

Parameters

filename
string containing the directory and filename root. This function will generate the XPV and XDV extensions.

Return Values

non-zero on failure, 0 on success.

Remarks

This function is used to load the firmware files into memory.
 
 
Regards,
Jimmy
 
0 Kudos
Message 1 of 3
(2,918 Views)
Try converting your string to a byte array.  This function is under the strings>>string array/array/path conversion palette.  Set up your call library node to take an array input of the U8 types with an array length parameter also.  Hope this helps.
 
 
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 3
(2,896 Views)

Let's keep it all in one place!

Starting multiple threads with the same question does not improve the chances of getting a good answer, it just clutters up the forum.

0 Kudos
Message 3 of 3
(2,893 Views)