MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: dll's from within....

  • To: mathgroup at
  • Subject: [mg14476] Re: dll's from within....
  • From: kevinl (Kevin Leuthold)
  • Date: Fri, 23 Oct 1998 20:58:54 -0400
  • Organization: Wolfram Research, Inc.
  • References: <70dcm9$>
  • Sender: owner-wri-mathgroup at

"Jeff D. Hamann" <hamannj at> writes:

>is it possible to access/call user written dll's from within mathematica


The answer is yes, using MathLink.  MathLink provides a tool (called
mprep)  that allows you to call functions written in C/C++.  You could
use mprep to create an executable that is linked to your dll.  You
could either call functions in your dll directly, or write C wrapper
functions for your dll functions.

I would recommend looking at the MathLink documentation in the
Mathematica Book, and compiling the addtwo example in the MathLink
Developer's Guide.  Addtwo is a simple example of calling a function
written in C, from Mathematica.

Kevin Leuthold
MathLink Group
Wolfram Research

  • Prev by Date: ParametricPlot
  • Next by Date: page breaks
  • Previous by thread: Re: dll's from within....
  • Next by thread: Reading HDF files into Mathematica?