1,You must create a DLL and corresponding import library (.lib) file. You must copy the DLL to the target in the /Windows directory in order for the Call Library Function Node to locate it correctly. This method is prefered if your library will be called by other applications or you want to minimize the size of your executable.
使用EVC生成DLL,用LABVIEW工具里的Call Library Function Node 封装好这个DLL函数,然后将DLL拷贝到PDA的Windows目录下,以便LABVIEW调用。如果不拷贝DLL到WINDOWS目录下,将会出现如下错误:
2. You must specify OS Info.lib, located in the external code folder in the Project Explorer window, as an additional file in the build specification.
在工程里加入