Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

NI8452 32/64 bit DLLs

Solved!
Go to solution

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:

2019-05-13_11h32_48.png

 

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

0 Kudos
Message 1 of 2
(2,956 Views)
Solution
Accepted by topic author sebastian_z

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

0 Kudos
Message 2 of 2
(2,929 Views)