LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling 32 bit dll in 64 bit labview

Hi all,

I am am trying to migrate my project from 32 bit LabVIEW to 64 bit LabVIEW. I have a bunch of DLLs in my project which are 32 bit.

When opening the project on 64 bit machine with 64 bit LabVIEW, I received an error stating "The library selected is not valid for the current platform. For example, you are runnin 64-bit LabVIEW and the library might be a 32-bit library."

 

Does this mean I have to convert all the DLLs to 64 bit first and then load them on 64 bit LabVIEW or is there some other workaround?

 

Thanks,
Ritesh

Message 1 of 2
(5,085 Views)

This has come up several times recently. Did you try a search? The answer is that is a limitation of the operating system. If you cannot migrate the DLLs to 64-bit, then you'd need to write a wrapper DLL that's 64-bit, that uses some sort of inter-process communication to call the 32-bit DLL. You can read more here: http://blog.mattmags.com/2007/06/30/accessing-32-bit-dlls-from-64-bit-code/

 

What is prompting you to use 64-bit LabVIEW as opposed to sticking with 32-bit LabVIEW?

Message 2 of 2
(5,080 Views)