DllNotFoundException when loading 64bit dll

Hi,

I successfully load 32bit dll in Unity3D 4 on the windows 7 32bit OS.

The same project is run on windows 7 64bit OS, and the 32bit dll is now changed to the 64bit dll, then Unity3D editor reports the error DllNotFoundException when loading 64bit dll. any suggestions?

I ever try building the application .exe on the windows 7 32bit OS, and then copy the application to the windows 7 64bit OS, then the application can successully load the 64bit dll.

Thanks for help…

Just because the OS is 64-bit doesn’t mean the DLL can be - by default the Unity player process is 32-bit (no matter what OS you run it on) so it can only load 32-bit DLLs.

If you want to use the 64-bit DLL, you’ll have to build a 64-bit version of the player.

Thanks. then how to build a 64-bit unity player (editor)? it is not a open source right?

Correct. There is no way to have a 64-bit version of the Unity editor at this time.