Chapter 7 291
Integrating Programs In Other Languages
Using a System Command
whichOS Determines the operating system and sends out one of
the following strings:
Windows_95, Windows_98,
Windows_2000, Windows_NT, HP-UX.
The program can branch based on these results when
incorporating programs in other languages. For
example, look at
manual49.vee in the
examples\manual directory to see a program that
uses
whichOS() to make sure it imports the right type
of library. On HP-UX, it would import a shared library.
On a PC, it would import a Dynamic Link Library.
whichplatform Determines the hardware system on which VEE is
running, then returns a string indicating that platform.
whichVersion Specifies the VEE version, which is useful for program
maintenance and debugging.