LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

include dll/lib/header

Hi all,

I'm using CVI7.0 and XP.

I included a external dll file(with header and lib).

I am getting

"xx.h"(52,19) syntax error; found 'identifier' expecting ';'.

"xx.h"(53,18) Redeclaration of 'USB_DLL_API' previously declared at xx.h:52.

"xx.h"(53,18) Redeclaration of 'USB_DLL_API' previously declared at xx.h:52.

"xx.h"(53,18) Redeclaration of 'USB_DLL_API' previously declared at xx.h:52.

"xx.h"(53,18) Redeclaration of 'USB_DLL_API' previously declared at xx.h:52.

"xx.h"(53,18) Redeclaration of 'USB_DLL_API' previously declared at xx.h:52.

From thid lines:

void USB_DLL_API fnSendZeroPacket(int iIdx);
int USB_DLL_API fnGetVersion(void);


void USB_DLL_API MTCSDllGetVersion(char* cBuf);
int USB_DLL_API MTCSInitSystem( char cTyp, int iVendorID, int iProductID );

how can i fix this?

any ideas?

thanks
0 Kudos
Message 1 of 5
(3,570 Views)

Looks like there is a definition missing. I would expect something like:

#define USB_DLL_API __stdcall

This, or something like it, should be found within the header files accompanying the dll.

JR

0 Kudos
Message 2 of 5
(3,566 Views)
hi ,

thanks for your help. i found the problem.

i defined the usb_api_dll after including the header.

newbie mistake 🙂
0 Kudos
Message 3 of 5
(3,565 Views)

Hi Bensai,

I just got curious when I saw "USB_DLL_API" in your post.
Can you tell what is that DLL is supposed to do?
I am in need of a good USB library compatible with CVI. Can it be use to send and receive data bytes to/from a USB port?

S. Eren BALCI
IMESTEK
0 Kudos
Message 4 of 5
(3,554 Views)

Here is more information on NI VISA USB facilities which you may find useful

JR

0 Kudos
Message 5 of 5
(3,543 Views)