280 Chapter 7
Integrating Programs In Other Languages
Understanding the Execute Program Object
Understanding the Execute Program
Object
In addition to ActiveX Automation, there are three ways to run programs in
other languages from VEE:
1. Use the
Execute Program object to escape VEE and run another
program, application, or operating system command. This method is the
most versatile and easy to use.
2. Link compiled functions in other languages to VEE, either through
Shared Libraries in UNIX operating systems or Dynamic Link Libraries
on the PC. Although this is slightly more difficult to execute, it gives you
significant performance gains. For more information on Shared Libraries,
refer to “Overview of Compiled Functions” on page 414. For more
information about Dynamic Link Libraries, refer to “Using Dynamic
Link Libraries” on page 417.
3. Use a method specifically designed for Rocky Mountain Basic programs.
For more information, refer to “Communicating with Rocky Mountain
Basic Programs” on page 442.
The
Execute Program object is located in the I/O menu. There is one
object for the PC and one for HP-UX, as shown in Figure 7-1 and Figure
7-2. Notice that in the PC version the
Execute Program object does not
use transaction I/O to communicate with programs, so you do not add data
input and output pins to pass data to the compiled program.
The HP-UX version uses transaction I/O, so the example includes input and
output pins and a program to illustrate how the object is used.