|
SOLUTIONS
|
LIBRARY LINK 符号
getMathLink
![]()
gets a MathLink connection to use for evaluations in Mathematica.
范例范例打开所有单元关闭所有单元
基本范例 (1)基本范例 (1)
The following gets a MathLink connection and uses it to send a message to the kernel:
MLINK link = libData->getMathLink(libData);
MLPutFunction( link, "EvaluatePacket", 1);
MLPutFunction( link, "Message", 2);
MLPutFunction( link, "MessageName", 2);
MLPutSymbol( link, "MyFunction");
MLPutString( link, "info");
MLPutString( link, "Message called from within DLL function.");
libData->processMathLink( link);
pkt = MLNextPacket( link);
if ( pkt == RETURNPKT) {
MLNewPacket(link);
}
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
