FIX: Build Errors From ODS ODBC Sample Resource DLLs

Last reviewed: April 15, 1997
Article ID: Q143340

The information in this article applies to:
  • Microsoft SQL Server, version 6.0
BUG#: 13180 (6.00)

SYMPTOMS

Users are unable to build the ODS ODBC sample resource DLLs using the make files provided with SQL Workstation 6.0.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft SQL Server ODBC Driver version 2.50. This problem has been corrected in SQL Server 6.5.

MORE INFORMATION

Users can build a Win32 version of the resource DLL by creating a new Visual C++ project. Use the Files/New/Project menu command to start a new project. Specify the C:\Sql60\opends\samples\odsodbc\build directory. Select Dynamic-Link Library as the project type. In the next window which specifies the project files, add the files Libmain.c and Samp.rc from C:\Sql60\opends\samples\odsodbc\src. Build the project.

Users can build a Win16 version of the resource DLL by making a couple of modifications of the build BAT file and the Samp.rc file. In C:\Sql60\opends\samples\odsodbc\build\buildw16.bat remove or REM out the lines that read:

   setlocal
   endlocal

In the file C:\Sql60\opends\samples\odsodbc\src\samp.rc change the line that reads:

   #include <odbcver.h>

to read:

   #include "odbcver.h"

Under Visual C++, the functionality previously provided by Libentry.obj is now provided by the run time libraries, so users can remove the line near the bottom of C:\Sql60\opends\samples\odsodbc\build\makefile.w16 that reads:

   libentry.obj +

Buildw16.bat will work as documented after these changes are made. A Win16 resource DLL can also be built by creating a new Visual C++ project as noted above for the Win32 resource DLL.


Additional query words: sql6 winnt vc++
Keywords : kbbug6.00 kbprg SSrvProg
Version : 6.0
Platform : WINDOWS


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: April 15, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.