02-08-2016 03:07 AM
hi all
i have a problem for coding to read 1D barcode.
the visual studio error is:
error LNK2019: 无法解析的外部符号 __imp__imaqReadBarcode2@28,该符号在函数 "protected: virtual int __thiscall COCRFunctionDlg::OnInitDialog(void)" (?OnInitDialog@COCRFunctionDlg@@MAEHXZ) 中被引用
1>E:\VS2010\OCRFunction\Debug\OCRFunction.exe : fatal error LNK1120: 1 个无法解析的外部命令
when my use other function (pattern match or match sharp)not this error, but imaqReadBarcode2 or imaqReadBarcode3 have this error , imaqReadBarcode function have no error
.h file :
#include "nimachinevision.h"
#include "niocr.h"
#include "nivision.h"
#include "io.h"
#pragma comment(lib,"nivision.lib")
have comment library
please help very thanks
08-18-2016 08:50 PM
i think the command--"#pragma comment" doesn't work in labwindows. i got the same type error with you.so i copy the lib to my project folder and the error is gone.
08-22-2016 03:12 AM
Please refer to the following link regarding with your question:
http://ae.natinst.com/public.nsf/web/searchinternal/36f561f57095cadb86257cc4006c275b?OpenDocument
02-20-2017 12:38 AM
the ni sw engineer have compile a new vision nivision.lib to me, it a bug in lib.
02-20-2017 12:46 AM
the ni sw engineer have compile a new vision nivision.lib to me, it a bug in lib.
so if you have this concern you can connect ni engineer