All DB-Library functions are completely portable between the Microsoft® Windows® and Microsoft 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 Microsoft 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 16-bit DB-Library applications for Windows that you want to port to Win32 and run with Windows NT or Windows 95/98, you can take two approaches to porting:
If your DB-Library application is under development or is evolving to meet changing user needs, and you want to run the application with Windows and Windows NT or Windows 95/98, make small changes to the source code to build 16-bit (Windows-based) and 32-bit (Win32-based) versions of your application from the same source.
If you decide to modify your application to run only as a 32-bit (Win32-based) application (for example, you require Win32-specific features such as threads or preemptive multitasking), you can port your application to the Win32 API, removing redundant Windows calls and dependencies.