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

Last reviewed: November 7, 1997
Article 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.

You can find SQLDLL.EXE, a self-extracting file, on the following services:

  • Microsoft's World Wide Web Site on the Internet

          On the www.microsoft.com home page, click the Support icon.
          Click Knowledge Base, and select the product.
          Enter kbfile SQLDLL.EXE, and click GO!
          Open the article, and click the button to download the file.
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the Softlib/Mslfiles folder.
          Get SQLDLL.EXE
    
  • The Microsoft Network

          On the Edit menu, click Go To, and then click Other Location.
          Type "mssupport" (without the quotation marks).
          Double-click the MS Software Library icon.
          Find the appropriate product area.
          Locate and Download SQLDLL.EXE.
    
  • Microsoft Download Service (MSDL)

          Dial (425) 936-6735 to connect to MSDL
          Download SQLDLL.EXE
    

For additional information about downloading, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online
               Services

MORE INFORMATION

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 : SSrvDB_Lib SSrvProg kbprg
Version : 4.2
Platform : WINDOWS
Solution Type : kbfile


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 7, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.