INF: Placing SQL Error & Message Handlers in Windows 3.0 DLL

ID: Q69231


The information in this article applies to:
  • Microsoft SQL Server Programmer's Toolkit, version 4.2


SUMMARY

The SQLDLL file in the Software/Data Library shows how to place the error and message handlers in a dynamic-link library (DLL) for a Windows version 3.0 or 3.1 DB-Library (DB-Lib) application.


MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

~ SQLDLL.EXE

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

Q119591 : How to Obtain Microsoft Support Files from Online Services





The contents of the SQLDLL file are as follows:

   File        Description
   ----        -----------
   SQLDLL.C    The C source code for the DLL
   SQLDLL.DEF  The definition file for SQLDLL.C
   TEST.C      The C source code for the test program
   TEST.H      The header file for TEST.C
   TEST.DEF    The definition file for TEST.C
   TEST.RC     The resource file for TEST.C
   TEST        The Nmake file to create the DLL and the test program 

NOTE: While callback functions in Windows are normally declared FAR PASCAL, dblib expects these two callback functions, dbwinMessageHandler() and dbwinErrorHandler(), to be declared FAR cdecl. Also note the use of the GetFocus() procedure in the DLL to get the handle of the window that currently owns the input focus.

Additional query words: dblib

Keywords : kbprg SSrvDB_Lib SSrvProg
Version : 4.2
Platform : WINDOWS
Issue type :


Last Reviewed: March 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.