Re: MathLink Help
- To: mathgroup at smc.vnet.net
- Subject: [mg44460] Re: MathLink Help
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Mon, 10 Nov 2003 19:55:45 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <boig64$ogm$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, remove the ToString[] and read the expression in a tree (or an other data structure you like) . Regards Jens Ibrahim El wady wrote: > > Dear Math Group > I try connect to Mathmatica using MathLink in Visual C++. > When I try execute D[x^2 *Sin[x],x] > > I write > > MLPutFunction(lp, "EvaluatePacket", 1); > MLPutFunction(lp, "ToString", 1); > MLPutFunction (lp, "ToExpression", 1); > MLPutString(lp, "D[x^2 *Sin[x],x]"); > MLEndPacket(lp); > > I receive > > 2\012x Cos[x] + 2 x Sin[x] > > My question > How I understant the result > > Thank you for help