Porting DB-Library Applications

All DB-Library functions are completely portable between the Windows and Windows NT platforms. You should not need to modify any of your DB-Library calls. You simply need to define the application's operating system at compile time (for example, #define DBNTWIN32 for the Win32 API).

Two DB-Library functions, dbprhead and dbprrow, not supported in Windows because they send output to STDIO, are supported in the Win32 API and can be used when developing applications for the CONSOLE subsystem. The dbprhead and dbprrow functions provide a convenient way to display the results of a query to the default output device.

If you have existing Win16 DB-Library applications for Windows that you want to port to Win32 and run with Windows NT or Windows 95, you can take two approaches to porting: