Informs DB-Library that the Windows application is about to exit.
void dbwinexit ( void );
DB-Library for Windows maintains information about each application that has referenced it. DB-Library creates the information when a library application calls dbinit; it does this to prevent conflicts between applications that use DB-Library concurrently. In order for DB-Library to release this information, the application must call dbwinexit just before it exits. You should put the call to dbwinexit within the message handling code for the WM_DESTROY message. For example:
case WM_DESTROY: dbwinexit(); break;
This call releases the memory DB-Library allocated to keep track of this application and makes that memory available to other applications.
Important Once your application has called dbwinexit, it cannot call any other DB-Library function. If you have called dbwinexit and then need to issue one or more DB-Library calls, you must call dbinit again to re-register your application.