LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error building a dll with image

Solved!
Go to solution

I am working with Labview 2009 and the vision module.Please find attached a project that has one DLL function. The function just get an image and return it back without doing anything.The compilation fail, giving messages that are not relevant.Could someone advice? Regards

0 Kudos
Message 1 of 2
(2,785 Views)
Solution
Accepted by topic author gabi_hor

Hi gabi_hor,

 

If you expand the error message, you'll note it says that the DLL builder is not properly registered and tells you to run a certain lvdb.exe file. Run that, then run your build again. This time it will likely faily with "Error -2147221480". This is a known issue with LabVIEW 2009. It is listed on the Known Issues Page.

 

Workaround: 1. Open C:\Program Files\National Instruments\LabVIEW 2009\cintools\fundtypes.h in a text editor.
2. Find the line that says #include <stddef.h>.
3. Above that line, add the following lines:
#ifdef _CVI_
#include <cvidef.h>
#endif /* _CVI_ */
4. Save the file.
5. Try the build again.

 

Those two things should build your DLL.

Jeff | LabVIEW Software Engineer
0 Kudos
Message 2 of 2
(2,762 Views)