This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Wolfram Research, Inc.

MLErrorMessageMLFlush

MLEvaluateString()

FilledSmallSquareint MLEvaluateString(MLINK link, char *string) sends a string to Mathematica for evaluation, and discards any packets sent in response.

FilledSmallSquare The code for MLEvaluateString() is not included in the MathLink library, but is generated automatically by mcc or mprep in processing MathLink template files.

FilledSmallSquareMLEvaluateString("Print[\"string\"]") will cause string to be printed in a Mathematica session at the other end of the link.

FilledSmallSquare See The Mathematica Book: Section 2.12.3 and Section 2.12.9.

MLErrorMessageMLFlush