LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I include dl and lib files of I2C card(PCI93LV-C)?

Hello all,
I'm using Labwindows-cvi 5.5 under Win98.
I want to include the I2C card to our sytem which name is PCI93LV-C interface card. I have dll, lib, and header files.
I have include the lib file into my project file and header file into source code.

There is a some lines in the header lines:
extern __declspec(dllimport) int WINAPI setup (int, int, int);
extern __declspec(dllimport) int WINAPI sendaddress (int, int, int);
extern __declspec(dllimport) int WINAPI writebyte(int, int);
extern __declspec(dllimport) int WINAPI readbyte(int, int);
extern __declspec(dllimport) int WINAPI sendstop(int);
extern __declspec(dllimport) int WINAPI restart (int, int, int);
extern __declspec(dllimport) int WINAPI getstatus(int);
extern __declspec(dllimport) int WINAPI recover(int);
extern __declspec(dllimport) int WINAPI slavelastbyte(int);
extern __declspec(dllimport) int WINAPI dllissue(void);

When I run the project, it gives me some error (for setup, sendaddress, writebyte...........) as below
"cali2c32.h"(8,41) syntax error; found ' identifier ' expecting ' ; ' "
"cali2c32.h"(9,41) syntax error; found ' identifier ' expecting ' ; ' " ......
What I must do?
Thank you
0 Kudos
Message 1 of 3
(3,077 Views)
The error "found ' identifier ' expecting ' ; '" is often due to a type (e.g. WINAPI) being used before it's defined. The order of the .h files in your #include statements can make a difference.
Try #include windows.h or windef.h before cali2c32.h.
Message 2 of 3
(3,072 Views)
Dear AI S
You are right. There were no windows.h file.
Thanks
0 Kudos
Message 3 of 3
(3,045 Views)