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:
-
Change your application source code so that it can be compiled for the Win32 or Windows platform. 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, 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.
-
Port your application source code entirely to the Win32 platform. 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.