Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

problem using a dll in CVI

Hello,
I am trying to use a DLL to control the parallel port on windows xp. I have the dll file, .def file and .lib file for the dll. I have compiled the dll using VC++. This dll works fine in visual basic, but somehow I am not able to call this function in CVI.
I tried importing this dll using the .lib file, but have had no luck. Attached are the dll files. Please provide your suggestions.

Thanks.
tmach
0 Kudos
Message 1 of 2
(3,146 Views)
Hello Tmach,

First, I would strongly suggest posting this question on the LabWindows/CVI discussion forum as well. You'll probably get a quicker response that way since this seems like it is a software issue.

In the meantime, I have a few suggestions for you to try:

1. Specify the following directories as include paths in the Visual C++ compiler:
CVIx.x\include
CVIx.x\include\ansi
CVIx.x\sdk\include

Also, specify the following directory as a library file path in the Visual C++ compiler:
CVIx.x\bin

2. Make sure to save your dll and all intermediate files in the same directory as your CVI project.

3. Include the .lib and .h files for you DLL in your CVI project.


Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 2
(3,128 Views)