HOWTO: Redistributing DAO with Your Visual C++ 5.0 ApplicationLast reviewed: September 30, 1997Article ID: Q167523 |
The information in this article applies to:
SUMMARYThere are 2 approaches to redistributing DAO 3.5 with your Visual C++ 5.0 application:
MORE INFORMATION
Redistributing the DAO SetupOn the Visual C++ 5.0 CD, under \DEVSTUDIO\VC\REDIST\DAO\DISK1\, there is a DAO Setup program that can be redistributed. This setup program prompts the user for information about which components to install. You can run the setup program with a '-s' option that silently runs the DAO Setup without putting information on the screen. Here are a few important notes:
Installing the DAO components with Your Own Setup ProgramBelow is the information from the Daosetup.rtf file installed into the DAO SDK directory. NOTE: The documentation fails to mention that you must copy the Oleaut32.dll and Stdole2.tlb files from the \devstudio\vc\redist directory on the Visual C++ 5.0 CD into the Windows system directory. You must register Oleaut32.dll. This document describes the steps required to create a setup program that successfully installs DAO and its related files. It is recommended that you use InstallShield Express that ships with Visual C++ 5.0 along with the information in this document to create your setup. Proper setup of DAO is very important. Because DAO is a shared component that only exists in one location on a machine, all applications using DAO may stop working if DAO setup is not done correctly.
DAO, Microsoft Jet, and RDO require a more complex installation procedure than simply copying files into a directory. An application cannot have its own "private" copy of an OLE Automation server (such as DAO) in an application directory. The server is registered by OLE, and all users use the same DLL.
Whether your application uses ODBCDirect or the Microsoft Jet Engine to access data determines whether you should install the Microsoft Jet Engine or ODBCDirect files. Only the files described in this section can be distributed with your application to other users. You cannot distribute other files, such as .hlp files or DAO header (.h) files. NOTE: The DAO directory and System32 directory are explained in section 3.2.
a. DAO
DAO is comprised of the following core files (these files must be
installed for DAO to function):
File Description Installed Registered Directory
-------------------------------------------------------------------
DAO350.DLL DAO version 3.5 Shared Yes DAO
DAO2535.TLB Type Library Companion No DAO
to DAO350.DLL
MSJTER35.DLL Microsoft Jet System No System32
(and DAO) error
message DLL
MSJINT35.DLL Localized Microsoft System No System32
Jet (and DAO) error
strings
MSVCRT40.DLL C Runtime DLL System No System32
b. Microsoft Jet Engine
1) Core Jet files
Microsoft Jet is comprised of the following core files. These
files are sufficient to access version 3.0 .MDB databases and ODBC
data sources (in conjunction with an installed ODBC driver) when
installed with DAO.
File Description Installed Registered Directory
-------------------------------------------------------------------
MSJET35.DLL Microsoft Jet engine System Yes System32
(version 3.5)
MSRD2X35.DLL MDB files from Companion Yes System32
Microsoft Access to MSJET35.DLL
2.0, Visual Basic
3.0 or earlier
MSJTER35.DLL Microsoft Jet (and System No System32
DAO) error message
DLL
MSJINT35.DLL Localized Microsoft System No System32
Jet (and DAO) error
strings
VBAJET32.DLL VBA-Microsoft Jet System No System32
Expression service
VBAR332.DLL VBA Runtime System No System32
2) Optional files
The following optional files provide access to other data formats.
Install the DLLs that correspond to the file format you need to
support, or if you need replication support.
Module Description Installed Registered Directory
-------------------------------------------------------------------
MSREPL35.DLL Microsoft Jet System No System32
Replication
MSXBSE35.DLL Xbase formats System Yes System32
MSPDOX35.DLL Paradox formats System Yes System32
MSTEXT35.DLL Text files System Yes System32
MSEXCL35.DLL Spreadsheet files System Yes System32
MSLTUS35.DLL Lotus formats System Yes System32
MSEXCH35.DLL Exchange formats System Yes System32
c. ODBCDirect
Install the following files for supporting ODBCDirect functionality.
DAO uses RDO to handle it's ODBCDirect functionality. For this reason
you may recognize these files as the core RDO files.
File Description Installed Registered Directory
-------------------------------------------------------------------
MSRDO20.dll Remote Database Shared Yes System32
Objects 2.0
RDOCURS.dll Batch Client Cursor Companion No* System32
Library to MSRDO20.DLL
* Rdocurs.dll is not a COM server (it doesn't export DllRegisterServer) so
it is not registered. The Daosetup.rtf is incorrect and Regsrv32.exe should
not be run against Rdocurs.dll.
Keywords : dbDao MfcDAO kbprg Version : WINDOWS NT: 5.0 Platform : NT WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |