05-11-2006 03:45 PM
05-11-2006 03:50 PM
05-16-2006 09:57 AM
05-17-2006 11:05 PM
05-18-2006 01:55 AM - edited 05-18-2006 01:55 AM
I think what he wanted to do is to compile the wrapper DLL in CVI too. However the wcap headers or the wrapper DLL depends on certain C runtime functions that are declared in some Visual C header file. I haven't looked at the exact file but unless it is a standard ANSI C header file, CVI won't come with that out of the box.
@Wendy L wrote:
Hello Carlos,
So you mentioned that when you call your DLL in CVI, it looks for certain header files. You also mentioned that these header files are part of Visual Studio. Well the header files are probably located somewhere on your hard drive. So, it shouldn't be a problem for CVI to find them if you add the header files to your CVI project.
Even if your DLL depends on the Windows SDK, CVI can called into these DLLs and static libraries. What you need to do to call the DLL in CVI is to:Those three steps should correct any linking errors you see in your application. If not, could you be more specific as to the error you are receiving, and what you are including in your CVI project?
- Include the DLL on your CVI project folder
- Include the static library for the DLL in the CVI project
- Include the header file for the DLL in the CVI project
Thanks
Message Edited by rolfk on 05-18-2006 09:00 AM
05-30-2006 01:40 AM
06-09-2006 09:07 AM
06-19-2006 01:47 PM
RLD,
Apologies for the late reply. WinPCap is thread safe. I currently don't return some of the PCap information, and it is retained in user memory, like you noted. I believe it's not necessary to keep anything in memory, if the handle information is returned from the DLL to LabView. It's only a little extra work.
I'm planning to do an update on my next block of free time. I'll try exporting those handles, if that'll help you, when I sit down to do it.
Glad it's helping out. Thanks for using it!
09-07-2006 04:47 PM
04-07-2008 07:42 AM