Re: Problem with mathlink:PLEASE HELP ME
- To: mathgroup at smc.vnet.net
- Subject: [mg97656] Re: Problem with mathlink:PLEASE HELP ME
- From: ragfield <ragfield at gmail.com>
- Date: Wed, 18 Mar 2009 04:52:29 -0500 (EST)
- References: <gpns91$gl6$1@smc.vnet.net>
On Mar 17, 4:58 am, olfa <olfa.mra... at yahoo.fr> wrote: > Hi mathematica community, > Under windows xp,I have a c++ program in which I established a > comunication with mathematica via mathlink. > But when my program is executed, a "Choose a MathLink Program to > Launch" dialog box appears and ask me to choose between some > executables. This is my code and the problem should be in the path of > the connection. > In this path I have chosen to launch mathkernel.exe so why the dialog box > appears and How can I GET RID OF THIS DIALOG BOX? > Thank you, I'm very gratefull for any help. > > void main(){ > MLENV env; > int error; > MLINK ml; > env = MLInitialize(0); > > if(env == (MLENV)0) > { printf("unable to initialize environment"); } > > ml = MLOpenString(env,"-linkname \"C:\\Program Files\\Wolfram > Research\\Mathematica\\6.0 \\MathKernel.exe\" -mathlink",&error); What about adding "-linkmode launch" ? -Rob