FIX: Build Errors From ODS ODBC Sample Resource DLLs

ID: Q143340


The information in this article applies to:

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          : kbprg SSrvProg kbbug6.00 
Version           : 6.0
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 24, 1999