Converting a DB-Library program to its Client-Library equivalent
generally involves the following steps:
? Replace DB-Library header file names with the Client-Library header
file name
? Plan the code conversion. Client application code can be split roughly
into the categories covered in this chapter:
? Initialization and cleanup code
? Code that opens a connection
? Error and message handlers
? Code that sends commands
? Code that processes results
Each section shows equivalent DB-Library and Client-Library
program logic. Before beginning the conversion, read these sections
to ensure that you understand Client-Library fundamentals. ? Perform the conversion:
Replace or remove DB-Library declarations, as appropriate.