The information in this article applies to:
BUG# 9984 (4.2) SYMPTOMS
The error and message handlers in the sample Windows-based DB-Library
(DB-Lib) program SQLTEST3.EXE (shipped with both DB-Lib version 4.21.00,
date: 1/26/94, size: 18432 and DB-Lib version 4.20.50, date: 8/24/93,
size: 18432 in the \sql\dblib\samples directory ) do not work.
CAUSE
The Windows operating system requires error and message handling for DB-
Library to be installed differently than MS-DOS does. The error and message
handlers are callback functions, and Windows dynamic-link libraries (DLLs)
can move around in memory between calls to a DLL. Therefore, you must
install the error handler and message handler as exported callback
functions.
WORKAROUNDThe source code is correct. To install the error and message handlers correctly, just recompile it using the /Gw switch in C7, or if using VC++, change the compiler option of "Windows Prolog/Epilog" to be "Real Mode __far Functions," or modify the sqltest3.c code and declare the error and message handler functions as " export." STATUSMicrosoft has confirmed this to be a problem in SQL Server version 4.2 for OS/2 and Microsoft SQL Server version 4.2. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Additional query words: errorhandler messagehandler dblib Windows NT
Keywords : kbprg SSrvDB_Lib SSrvProg kbbug4.20 |
Last Reviewed: March 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |