MathGroup Archive 1997

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

Search the Archive

Mathlink and VisualBASIC

  • To: mathgroup at
  • Subject: [mg6577] Mathlink and VisualBASIC
  • From: Jeff Hammock <hammockj at>
  • Date: Fri, 4 Apr 1997 02:11:29 -0500 (EST)
  • Organization: The University of Alabama in Huntsville
  • Sender: owner-wri-mathgroup at


I've been trying to access the MMA 3.0 kernal through VisualBASIC 3.0
for Win95.  Wolfram provides some sample VisBAS code in the
UnsupportedGoodies directory of MathLink which seems to work fine.

But when I try to strike out on my own, things go a little south.

I can get the Kernal launched and connected just fine, but I can't even
perform a simple task like addition.

I try things like:

	Dim x, y, z As Integer
	MLPutFunction(stdlnk, "Plus", 2)
	MLPutInteger(stdlnk, x)
	MLPutInteger(stdlnk, y)

	MLGetInteger(stdlnk, z)
	Print, z

Alright, admittedly I'm not an advanced programmer.  But something this
easy should (hopefully) not be as difficult as I'm making it.

Does anyone have a piece of VisualBASIC code that I can look at to get
me on track?  Or any other comments / suggestions ?



Matthew Smith, Ph.D.
Research Scientist
The University of Alabama in Huntsville

smithmh at

  • Prev by Date: ContourGraphics and Show
  • Next by Date: Re: Plot3D precision limits?
  • Previous by thread: ContourGraphics and Show
  • Next by thread: Re: Plot3D precision limits?