Programmer's Guide to Writing Programs
Table of Contents
Index
Chapter 10: Interfacing and Mixed-language Programming
10.1 Cancelling Non-COBOL Programs
10.2 Interfacing to Assembler Subprograms
10.2.1 Assembler Subprograms on DOS
10.2.2 Assembler Subprograms on Windows and OS/2 (16-bit)
10.2.3 Assembler Subprograms on Windows NT and OS/2 (32-bit)
10.2.4 Invoking Assembler Subprograms from COBOL
10.2.5 Animating Programs That Call Assembler Subprograms
10.2.6 Memory Model Considerations
10.2.7 Machine State At Transfer of Control
10.2.7.1 Registers Used on the 16-bit COBOL System
10.2.7.2 Registers Used on the 32-bit COBOL System for OS/2
10.2.7.3 Registers Used on the 32-bit COBOL System for Windows NT
10.3 Interfacing with Windows and OS/2 API Routines
10.3.1 Interfacing with Windows API Routines (16-bit)
10.3.2 Interfacing with OS/2 API Routines (16-bit)
10.3.3 Interfacing with Win32 API Routines
10.3.4 Interfacing with API Routines (32-bit)
10.4 Interfacing with OS/2 Optlink Routines
10.5 Interfacing with C (32-bit)
10.5.1 C Functions
10.6 Interfacing with High-level Languages (16-bit)
10.6.1 Microsoft C V6.0 and C/C++ V7.0
10.6.1.1 Microsoft C V6 and C/C++ V7 Subprograms on DOS
10.6.1.2 Microsoft C V6 Subprograms on OS/2
10.6.1.3 Invoking Microsoft C V6 and C/C++ V7 Subprograms from COBOL
10.6.1.4 Invoking COBOL Subprograms from Microsoft C V6 and C/C++ V7 on DOS and from Microsoft C V6 on OS/2
10.6.1.4.1 Dynamic Linking
10.6.1.5 Invoking COBOL Subprograms from Microsoft C V6 on Windows
10.6.1.6 Invoking COBOL Subprograms from Microsoft C/C++ V7 on Windows
10.6.1.7 Animating Programs Which Call Microsoft C V6 and C/C++ V7 Subprograms
10.6.1.8 Restrictions
10.6.2 Microsoft C V4 and V5
10.6.3 Microsoft Visual C++ V1.0 on Windows
10.6.4 Microsoft FORTRAN V5.0
10.6.5 Microsoft FORTRAN V5.1
10.6.6 Microsoft Pascal
10.6.7 Lattice C V3.1 and V3.2
10.6.8 IBM C Set++
10.6.9 IBM REXX/2
10.7 Accessing Non-COBOL Data (OS/2)
10.8 Mixed Language Support Functions
10.8.1 Mixed Language Support for Microsoft Windows V3.x
10.8.1.1 Microsoft C V7 and COBOL
10.8.1.1.1 Linking a Microsoft C V7 Program to COBOL
10.8.1.1.2 Importing a COBOL .dll Into C
10.8.1.1.3 Calling a COBOL .dll from C
10.8.1.2 Borland C++ V3.1 and COBOL
10.8.1.3 Microsoft Visual Basic V2 and V3
10.8.1.4 Microsoft Visual C++ V1.0
10.8.1.5 General Guidelines for Mixed Language Applications
10.8.2 Mixed Language Support Library Routines on 16-Bit
10.9 UNIX
10.9.1 Interfacing with the UNIX Operating System
10.9.2 Interfacing with High-level Languages on UNIX
10.9.3 UNIX-specific C Functions
10.9.3.1 Sample Program
10.9.4 Miscellaneous Functions
10.9.4.1 Example
10.9.5 Screen Handling from C
10.9.6 Environment Handling
10.9.6.1 Example
10.9.7 Signal Handling
10.9.7.1 Posting Signal Handlers
10.9.7.2 Writing Signal Handlers
10.9.7.3 Coping with More than One Handler for the Same Signal
10.9.7.4 Converting Signal Handlers Written for the Signal Function
10.9.7.5 Coping with Third Party Software that Uses Signals
10.9.7.6 Comparing the signal() and sigaction() Functions