How to Build 16- or 32-bit DRVSETUP.EXE by Using Visual C++
ID: Q128224
|
The information in this article applies to:
-
Microsoft Visual C++ for Windows, versions 1.51, 1.52, 1.52b, 1.52c
-
Microsoft Visual C++, 32-bit Editions, versions 2.0, 2.1, 2.2
SUMMARY
This article gives you step-by-step instructions for building a 16- or
32-bit DRVSETUP.EXE by using Visual C++.
NOTE: When DRVSETUP.EXE is built by BUILD.BAT and makefile under
\ODBCSDK\DRVSETUP.KIT, 3d controls inside dialog boxes don't work.
Buttons are not displayed in the right positions. You can overcome this
problem by using Visual C++ Workbench and App Studio.
MORE INFORMATION
To build a 16-bit DRVSETUP.EXE using Visual C++ version 1.5x:
- Copy ODBCVER.H and CTL3D.H from \ODBCSDK\INCLUDE into
\ODBCSDK\DRVSETUP.KIT;
- Launch App Studio. Open DRVSETUP.RC, and choose Save as from the File
menu, save the file as type "Resource Files(*.res)"; and then open
DRVSETUP.RES, choose Save as from the File menu, save the file as type
"Resource Scripts(*.rc)". A dialog box will pop up and ask you whether
or not to overwrite the old version of resource file; click OK.
- Launch Visual Workbench.
- From the Project menu, choose New to create a project named drvsetup.
Add DRVSETUP.C, DRVSETUP.DEF, and DRVSETUP.RC to the project.
- From the Options menu, choose Project, and select Linker. Add odbcinst
and ctl3ds to Input Libraries.
- From the Options menu, choose Directories, and add C:\ODBCSDK\INCLUDE
to the beginning of the Include File Path and C:\ODBCSDK\LIB to the
beginning of Library Files Path.
- From the Project menu, choose Build DRVSETUP.EXE.
To build a 32-bit DRVSETUP.EXE using Visual C++ version 2.x:
- Copy ODBCVER.H and CTL3D.H from \ODBCSDK\INCLUDE into
\ODBCSDK\DRVSETUP.KIT.
- Open DRVSETUP.RC and choose Save as from the File menu, save the file as
type "Resource Files(*.res)"; and then open DRVSETUP.RES, choose Save as
from the File menu, save the file as type "Resource Scripts(*.rc)". A
dialog box will pop up and ask you whether or not to overwrite the old
version of resource files. Click OK.
- From the File menu, choose to create a new project and name it drvsetup,
setting the Project Type to Application.
- From the Project menu, choose Settings and then Link. Add ODBCCP32.LIB
and CTL3D32S.LIB to the Object/Library Modules;
- From the Tools menu, choose Options and then Directories. Add
C:\ODBCSDK\INCLUDE to the beginning of the Include Files path and
C:\ODBCSDK\LIB32 to the beginning of the Library Files path.
- From the Project menu, choose Build, and build DRVSETUP.EXE.
Additional query words:
kbinf 2.00 2.10 2.20 ODBC App Studio Workbench
Keywords : kbDatabase kbMFC kbODBC kbVC
Version : :1.51,1.52,1.52b,1.52c; winnt:2.0,2.1,2.2
Platform : winnt
Issue type :
|