Page 1 of 1

Windows 32Bit and 64Bit Support - Where to place the DLLs ?

Posted: Fri 8. Mar 2013, 09:48
by PEAK-Support
You have to copy the PCANBasic.DLL (also the PCAN-Light DLLs if you use the older PCAN-Light API) on 32Bit and 64Bit Windows Systems to the following directories to get your Software work:

On a 32Bit OS please copy:

32Bit DLLs > Windows\system32

On a 64Bit OS please copy:

32bit DLLs > Windows\syswow64
64bit DLLs > Windows\system32

you don´t believe us? see here: http://en.wikipedia.org/wiki/WoW64

Please keep in mind: .NET Application (the EXE files) are no 32Bit or 64Bit Applications (native code) - they are independent until they start and use 32Bit on a 32Bit OS and 64Bit on a 64Bit OS.
Perhaps you should set your build options in the compiler on x86 only, than on all systems only the 32bit DLL will be used.

For JAVA users: please take care that you also use the right DLLs - also the right JNI DLL !!
Java could use on 64Bit OS also the 32Bit Version - this is depending on which RT you run it - yes, the world is hard and complicated... :P