11-02-2011 03:06 AM
I have a following problem. I want to use a C++ .dll and a header file, so I go Tools>>Import>>shared library. I add both files (.dll and .h) and after parsing files I get the following message:
"The following header file was not found in the specified header file or one of the referenced header files:- vfw.h"
The .dll has 64 declarations, LabView can import only 24. How to force LabView to see this missing file (I cannot add it)? I enclosed both files, any ideas will be really helpful 🙂
11-02-2011 04:52 AM
The problem is that TVCore2.h includes vfw.h file in the very first lines: you cannot import the dll until all original and nested include files are present. The missing file can possibly be a part of the product, so you could ask the producer of the dll to supply it.
In any case, this question relates to LabVIEW and should be posted in the proper forum: this one is dedicated to LabWindows/CVI
11-02-2011 05:02 AM
Thank you for a reply. I already have this header file - what to do with this file?
11-02-2011 05:15 AM
I suppose you can merge the two header files, but I'm not sure about it as I'm not a regular LabVIEW user: that's why I suggested you to post to the LV forum
11-02-2011 05:26 AM
OK, thanks for help 🙂
11-02-2011 05:43 AM
Place vfw.h in the same directory as the TVCore2.h file. LabVIEW should automatically include it. Alternativly, in the import wizard lv lets you add additional include directories, add the directory containing vfw. But, if vfw includes other stuff you'll have to either place those things in that directory or add those directories as well.
11-02-2011 06:31 AM
thank you for a reply, I'll try with that.