This documentation is archived and is not being maintained.

Redistributing Controls 

Visual C++ .NET supplies ActiveX controls that you can use in applications. You can then redistribute the controls along with the applications. In the Insert ActiveX Control dialog box, highlighting a control will display its .ocx or .dll file.

For a list of the redistributable Visual C++–supplied ActiveX controls, see Program Files\Microsoft Visual Studio .NET 2003\redist.txt on Disc 2 of the Visual C++ .NET product CD-ROM; any .ocx files in the Win\System folder are redistributable.

MFC ActiveX Controls: Distributing ActiveX Controls explains how to install and register redistributable ActiveX controls.

Merge Module Projects explains how Visual Studio .NET deployment handles the redistribution of files through merge modules.

Redistributing Database Support Files discusses how to redistribute support files for the database technologies found in the Microsoft Data Access SDK.

If your application uses an ActiveX control that connects to a database, you need to install or do the following:

  • DCOM for Windows. You need to run Dcom98.exe or Dcom95.exe on any computer running versions of Windows earlier than Windows 2000. (Dcom98.exe is specifically for Windows 98; Dcom95.exe is specifically for Windows 95.) You can download these files from

  • MDAC 2.7 SDK. You should install the Microsoft Data Access 2.7 SDK on the target computer. You can download this from; on this page, scroll down to "MDAC 2.7 Software Development Kit" and click the download link.

  • MDAC 2.7 redistribution program. The MDAC 2.7 SDK is designed for use with the MDAC 2.7 redistribution program (Mdac_typ.exe) included in the MDAC27 directory on the Visual Studio .NET Prerequisites CD-ROM. You can also download Mdac_typ.exe from the MDAC 2.7 SDK download link listed above.

  • Replicate the DSN. You also need to replicate the data source name on the target computer. You can do this programmatically with functions such as ConfigDSN.

  • Redistributing DAO components.   Microsoft recommends that you use Jet 4.0 SP3 (version 2927.04) or later. Jet 4.0 SP3 ships with Windows 2000 and Windows Me. Using this version of Jet reduces the number of Jet versions that must be tested with your application.

    Windows XP ships with an upgraded service pack version of Jet not included in earlier versions of Windows. Testing your application on Windows XP automatically tests the version of Jet that ships with Windows XP. You need to test DAO applications on both versions of Jet 4.0 before releasing them.

    The only difference in the Windows XP version is fixes for problems found since Windows 2000 was released. If users of your application do not encounter problems, there is no need to upgrade beyond Jet 4.0 SP3.

    If you use Windows 2000 and want to upgrade your version of Jet, you need to use Windows service packs. If you use a Windows version earlier than Windows 2000, you can obtain the latest version of Jet, as described in the Knowledge Base article, "ACC2000: Updated Version of Microsoft Jet 4.0 Available in Download Center" (Q239114). You can find Knowledge Base articles on the MSDN Library CD-ROM or at

  • Known problems with ActiveX controls.   There is a known problem with dynamically creating instances of redistributable ActiveX controls on computers on which Visual C++ has not been installed, as described in the Knowledge Base article, "PRB: Dynamic Creation of Redistributable Control Fails" (Q151804). You can find Knowledge Base articles on the MSDN Library CD-ROM or at There is also a known problem with placing some ActiveX controls on a dialog box; you get a message box stating that the control requires a design-time license, as described in the Knowledge Base article, "PRB: Need Design-Time License for Microsoft ActiveX Controls" (Q155059). You can find Knowledge Base articles on the MSDN Library CD-ROM or at

  • Visual Studio licensed controls.   Visual Studio licensees can redistribute additional ActiveX controls specific to the other Visual Studio development tools. For example, the Chart control is distributed with Visual Basic, which also ships in Visual Studio. Thus, if you are using Visual C++ as a part of a Visual Studio license, you can redistribute the Chart control. However, if you purchased only Visual C++, you do not have a license to redistribute it.