C/C++ Programmer's Guide (G06.25+)

Accessing Middleware Using HP C and C++ for
NonStop Systems
HP C/C++ Programmer’s Guide for NonStop Systems429301-008
6-3
Installation Notes
To migrate existing code from version 6.1 to version 7, the following code adjustments
are required for specific classes:
Extra template arguments are required for hashed and sorted collections. Use the
predefined macro RWDefHArgs or RWDefCArgs to provide the additional template
arguments.
Different constructor arguments are required for hashed collections. You must use
a hash object (an object that provides a hash function through a public member
function) rather than a hashing function. Use the provided templatized object,
RWTHasher<T>, which builds a hash object from a hash function.
Element types in some collections may require less-than semantics (operator
<()). This requirement is due to the inclusion of member functions based on the
Standard C++ Library, such as sort().
Class hierarchies have changed. In version 7, there are no inheritance
relationships among the standard-library-based collection class templates. If your
code constructs an RWTValHashTableIterator from an RWTValHashSet, you
should use an RWTValHashSetIterator instead.
Detailed migration information is available in Chapter 11 of the user guide portion of
the Tools.h++ Manual Version 7.
Installation Notes
On an HP NonStop system, the Tools.h++ library is delivered on the site update tape
(SUT), and the files are installed on $SYSTEM. No user installation is required. On the
PC, Tools.h++ is included on the CD of the Tandem Development Suite and the
Enterprise Toolkit.
Table 6-1. Installation Details for G06.20 Tools.h++ (page 1 of 2)
Environment Location of Header Files Location of SRLs or DLLS
Guardian Version 6.1: $SYSTEM.ZRW Version 6.1:
$SYSTEM.SYSnn.ZTLHGSRL,
$SYSTEM.SYSnn.ZTLHOSRL
Version 7: $SYSTEM.ZINCRW70 G-series Version 7:
$SYSTEM.SYSnn.ZTLHSRL
H-series Version 7:
$SYSTEM.ZDLLnnn.ZTLH7DLL