05-13-2019 04:33 AM
Hi all,
I do have a question regarding the 32/64 bit version of the DLLs for the NI8452. I used the tipp from the this page: Using the USB-845-x API Functions
My programming environment is Visual Studio 2017 and I develop a DLL for usage in LUA, the 32 bit version as well as the 64 bit version.
In my build script I added the the DLLs as well as the *.lib. For 32 bit DLL this is working as expected. My problem is that the 64 bit version does not build and I assume that I need another *.lib for that version.
I found the original *.lib in the "Program Files (x86)" directory:
Without the *.lib the appropriate functions inside the DLL are not found and I get a linker error. Does anybody know how to compile my DLL for 64 bit?
Kind regards
Sebastian
Solved! Go to Solution.
05-20-2019 06:08 AM
I found a solution and wanted to share in case anybody faces the same problem:
The method is very well described on this homepage: Create .lib from .dll
First we print out the functions contained in the DLL. I did this with the tool Dependency Walker described in a comment on that page and not with the dumpbin tool, that didn't work for me.
The second and final step is to create a *.lib out of the generated file. The shell command is:
lib /def:file_with_function_names.def /OUT:libname.lib /MACHINE:X64 /NAME:name_of_the_DLL.dll
Hope that helps for you!
Kind regards
Sebastian