C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

Changes Required to Interoperable Compilation Modules at D44.............................................77
EDIT File Functions..................................................................................................................78
SQL Data-Type Conversion Functions.........................................................................................78
Startup Information Retrieval Functions.......................................................................................78
Miscellaneous HP Extension Functions.......................................................................................78
5 Using the Standard C++ Library.................................................................80
User Documentation................................................................................................................81
Features of the Standard C++ Library (VERSION3)......................................................................81
Contents of the Standard C++ Library.......................................................................................82
VERSION3........................................................................................................................82
VERSION2........................................................................................................................82
VERSION1........................................................................................................................83
Installation Notes for VERSION3...............................................................................................83
Using Header Files With VERSION3....................................................................................84
Installation Notes for VERSION2...............................................................................................84
Examples of VERSION2 Headers.........................................................................................85
VERSION2 Standard C++ Library Example Files....................................................................85
Compiling and Linking in the OSS Environment..........................................................................88
Pragmas for the Standard C++ Library .....................................................................................88
Using the Neutral C++ Dialect.................................................................................................89
6 Accessing Middleware Using HP C and C++ for NonStop Systems.................91
Using Tools.h++.....................................................................................................................91
User Documentation...........................................................................................................91
Contents of the Tools.h++ Class Library (Version 7).................................................................91
Migration Considerations for Version 7.................................................................................92
Installation Notes...............................................................................................................92
Including Header Files for Tools.h++....................................................................................93
XDR Streams.....................................................................................................................93
Tools.h++ Example Files for Versions 6.1 and 7......................................................................93
Pragmas for Tools.h++........................................................................................................94
7 Mixed-Language Programming for TNS Programs.........................................97
Introducing the CRE................................................................................................................97
Using Standard Files in Mixed-Language Programs.....................................................................98
Writing Interface Declarations..................................................................................................98
Usage Guidelines..............................................................................................................99
Examples........................................................................................................................100
Interfacing to TAL..................................................................................................................101
Using Identifiers ..............................................................................................................101
Matching Data Types.......................................................................................................102
Memory Models..............................................................................................................103
Data Model....................................................................................................................103
Calling TNS C Routines From TAL Modules..........................................................................103
Calling TAL Routines From TNS C Modules..........................................................................104
TAL Procedures That You Cannot Directly Call......................................................................105
Sharing Data .................................................................................................................106
Variables and Parameters..................................................................................................109
Extended Data Segments..................................................................................................116
Interfacing to TNS COBOL.....................................................................................................119
8 Mixed-Language Programming for TNS/R and TNS/E Native Programs........122
Introducing the CRE..............................................................................................................122
Using Standard Files in Mixed-language Programs....................................................................122
Declaring External Routines....................................................................................................122
Writing Interface Declarations...........................................................................................122
Contents 5