Re: Can you call 32 Bit DLLs from Mathematica 8.0 ?
- To: mathgroup at smc.vnet.net
- Subject: [mg125269] Re: Can you call 32 Bit DLLs from Mathematica 8.0 ?
- From: Guido <guido.reichert at gmx.de>
- Date: Sat, 3 Mar 2012 06:54:18 -0500 (EST)
- Delivered-to: email@example.com
- References: <firstname.lastname@example.org>
On 1 Mrz., 11:43, Guido <guido.reich... at gmx.de> wrote: > I am using a System Dynamics software (Vensim DSS) that is still a 32 > Bit application and provides a full 32 Bit DLL for use with other > programs. I had thought that I can call that DLL from Mathematica 8.0. > > Such a call produces a 'BadFormat' error and the Vensim support says > that 64 Bit and 32 Bit do not mix well. Is there any chance to call a > 32 Bit DLL from Mathematica 8.0? > > Kind regards > > Guido Next to setting the Kernel to be loaded in the 32 Bit version as has been suggested here, there seems to be a more simple method available since what matters should be the .NET/Link application and that can be set to load as 32 Bit which then enables the use of 32 Bit DLLs and precludes the use of 64 Bit ones. For the original reference see here: http://mathematica.stackexchange.com/questions/2519/how-do-i-call-a-32-bit-dll-using-net-link-and-a-64-bit-version-of-mathematica So what needs to be done is: Needs["NetLink`"] UninstallNET InstallNET["Force32Bit" -> True] with this everything so far seems to work out. I am not sure whether the UninstallNet is necessary as it seems to also work without it. Guido