|
|
Overview of interfacing to other languages |
|
Interfacing to .Net, Java, and other object-oriented softwareAPLX allows you to use classes written in modern object-oriented languages such as the .Net languages (C#, Visual Basic, and other languages which generate code for the .Net Common Language Runtime), Java, and Ruby, and also the R statistical language. You can create and use instances of external classes, call 'static' (shared) methods, and in some cases evaluate statements in the external language directly. See the next section on Using External Classes for full details. Interfacing to procedural languages and shared librariesAPLX includes two main facilities for calling external procedural (i.e. not object-oriented) code from within APL, for example operating-system libraries (DLLs) or code written in C. These are:
The choice between these two mechanisms depends on what you are trying to do. To interface to an existing shared library or DLL, or to call the operating system directly, Interfacing via OLE and OCX (Windows only)Under Windows, Microsoft provide a generalized means for interfacing to external applications and using external controls. This mechamism is variously known as OLE, OCX, ActiveX, and COM. Although to some extent it has been superseded by the .Net architecture, it remains important because it is supported by a wide range of software. There are three ways in which you can use this feature:
See the section on OCX/ActiveX Controls and OLE Automation in the separate manual APLX System Classes and User-Interface Programming for full details. |
|
|
Copyright © 1996-2010 MicroAPL Ltd