LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

importing dll

I've jsut tried the new feature in LV 8.20 for importing DLLs into Labview automatically.

It didn't work for me.  It told me the .h files need to be in C-Syntax.  Here's an example of what I've got available.  What format is this? Pascal?


USHORT
WINAPI
USB_SetTriggerMode(
    PUSB_HANDLE pUsb,
    USHORT wTrig,
    USHORT wEdge
    );

Anyone know of a converter?

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 1 of 6
(3,172 Views)
Hi Shane,

Can you post the DLL and the h file?

Do you have informations about the DLL how it's written, which functions it contains...

Regards..

Matthieu
0 Kudos
Message 2 of 6
(3,151 Views)
Thanks Matthieu,

I actually have built some applications based on this DLL, so I have already imported it manually.  The functions are correctly described, and they are all present in the DLL, this I know.

I just wanted something I could test thie new functionality of the LV DLL "Import" function.  I plain and simple didn't work.  It said that it didn't find the definitions in the header file.

I assumed the formatting of the .h file is wrong....

Here's a copy of the text returned from my failed attempt to import the DLL, maybe something here helps.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 3 of 6
(3,143 Views)
Hi Shane,

It seens like there is some missing included File for you h File...

Can you post you .h file?

have a great day.

Matthieu
0 Kudos
Message 4 of 6
(3,125 Views)
Hi Matthieu,

I have tried the import function on a version of the driver with the .h files listed below, but LV hangs.  It sits there for hours using up CPU cycles, but not doing anything else obvious.

I suppose I should be happy the error messages are gone 😛

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 5 of 6
(3,118 Views)
Hi Shane,

It seens like you have some problems with you .h file.

You must be sure that the .h file contain the right declaration.

Can you post the .dll file and describe how do you try to import it, so I can try my self.

Regards
Matthieu

0 Kudos
Message 6 of 6
(3,099 Views)