MathGroup Archive 2002

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

Search the Archive

A MathLink question

  • To: mathgroup at
  • Subject: [mg32301] A MathLink question
  • From: Susumu Okumura <okumura at>
  • Date: Sat, 12 Jan 2002 05:18:11 -0500 (EST)
  • Reply-to: okumura at
  • Sender: owner-wri-mathgroup at


I have a question about the communication with VisualBasic program 
and MathKernel.

A small program in Mathematica:

  For[i = 1, i <= 100, i++,
    Print["i = ", i]

prints out:
i = 1
i = 2
i = 99
i = 100.

When I make a program using MathLink between mathkernel.exe and VisualBasic
on a Windows98 computer VisualBasic gets the output as one block of 
i = 1
i = 2
i = 100
from the mathkernel at the same time. I do not like this behavior.
I would like to have the output one by one.
How can I write VisualBasic program or Mathematica program to have such
an output.

Dept. of Mechanical Systems Engineering
University of Shiga Prefecture

  • Prev by Date: Runs on a Ring
  • Next by Date: Re: arguments/realtime3d
  • Previous by thread: Re: Runs on a Ring
  • Next by thread: Experimental data analyst