MathGroup Archive 2000

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

Search the Archive


  • To: mathgroup at
  • Subject: [mg25966] MathLink
  • From: "Mirek Latka" <mirek at>
  • Date: Tue, 14 Nov 2000 03:46:59 -0500 (EST)
  • Sender: owner-wri-mathgroup at

I am trying to call a mathematica function from my C program (Win98). I use
the enclosed function to
start the kernel. The program works fine but I cannot get rid of the file
select windows which pops up
and ask me to select a mathlink program. I would be grateful for any
suggestions as to how to fix this
Mirek Latka

void init_and_openlink()
 long err;

 ep =  MLInitialize( (MLParametersPointer)0);
 if( ep == (MLENV)0) exit(1);
 atexit( deinit);

 lp=MLOpenString(ep,"-linkname C:\\Program Files\\Wolfram
Research\\Mathematica\\4.0\\MathKernel.exe -linkmode launch",&err);
 if(lp == (MLINK)0) exit(2);
 atexit( closelink);


  • Prev by Date: Re: how to differentiate a list?
  • Next by Date: Font Problems
  • Previous by thread: nasty,nasty bug?
  • Next by thread: Re: MathLink