Programming tutorial giving a thorough explanation of MathLink, the mechanism enabling higher-level communication between Mathematica and external programs. Introduces basic concepts and explains the fundamentals of MathLink templates and its data transfer model. Also provides source code for a wide range of practical applications, giving the reader the opportunity to adapt the code to suit their own practical needs. Assumes prior knowledge of Mathematica and the C language.
Preliminaries | Connecting the Front End and the Kernel | Compiling AddTwo | Transfer Time Using MathLink | Debugging MathLink Programs | TurtleGraphics | Cellular Automata | MovieDigitizer | Object-oriented Programming | Creating an Event-driven Mechanism | Creating a Window Object | Window Object Applications | Writing an Interactive Graphics System | Interactive Geometry | Communications between Mathematica Sessions