Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8849

Re: Can you call 32 Bit DLLs from Mathematica 8.0 ?

From Guido <guido.reichert@gmx.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Can you call 32 Bit DLLs from Mathematica 8.0 ?
Date 2012-03-03 11:55 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jit0s7$e5t$1@smc.vnet.net> (permalink)
References <jinjsa$d4v$1@smc.vnet.net>

Show all headers | View raw


On 1 Mrz., 11:43, Guido <guido.reich...@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

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Can you call 32 Bit DLLs from Mathematica 8.0 ? Guido <guido.reichert@gmx.de> - 2012-03-01 10:43 +0000
  Re: Can you call 32 Bit DLLs from Mathematica 8.0 ? "Oleksandr Rasputinov" <oleksandr_rasputinov@ymail.com> - 2012-03-02 12:48 +0000
  Re: Can you call 32 Bit DLLs from Mathematica Todd Gayley <tgayley@wolfram.com> - 2012-03-03 11:57 +0000
  Re: Can you call 32 Bit DLLs from Mathematica 8.0 ? Guido <guido.reichert@gmx.de> - 2012-03-03 11:55 +0000

csiph-web