Microsoft KB Archive/318823

= CDO for Windows 2000 Library reference is unavailable in Visual Basic Project =

Article ID: 318823

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft Visual Studio 6.0 Service Pack 5
 * Microsoft Collaboration Data Objects 2.0
 * Collaboration Data Objects for Exchange 2000
 * Microsoft Office XP Professional Edition

-



This article was previously published under Q318823



SYMPTOMS
If you try to create or modify a project that references the Microsoft Collaboration Data Objects for Windows 2000 (CDOSYS) Library, the reference is not available. The reference for the Microsoft Collaboration Data Objects (CDO) for Exchange 2000 Library is present instead.



CAUSE
This behavior occurs because Microsoft CDO for Exchange 2000 (CDOEX) is installed on the computer.



WORKAROUND
To work around this issue, use the reference to the CDO for Exchange 2000 Library (CDOEX) instead of the reference to the CDO for Windows 2000 (CDOSYS).



MORE INFORMATION
This section of the article explains:
 * The relationship between the CDO for Windows 2000 (CDOSYS) Library and the CDO for Exchange 2000 (CDOEX) Library
 * How the relationship can affect the development of Visual Basic projects, including programs developed with Microsoft Visual Basic for Applications (VBA) or Visual Basic Scripting Edition (VBScript).

CDOEX is a superset of CDOSYS. This means that CDOEX contains all of the functionality of CDOSYS, plus additional functionality for use with Microsoft Exchange Server 2000. When CDOEX is installed on a computer, it takes over the functionality that was previously provided by CDOSYS. Any program that makes calls to CDOSYS will now call CDOEX instead.

When CDOEX is installed (by installing Microsoft Exchange Server 2000, Microsoft Office XP, or other programs), the CDO for Windows 2000 reference is removed from the list of possible references available to Visual Basic applications. However, the CDO for Exchange 2000 library is available, and developers can use CDOEX just as they would have used CDOSYS.

Programs created using CDOSYS will function without change on computers with CDOEX installed.

Applications created using CDOEX and using only the objects associated with CDOSYS (CDO.Message for instance), will also function as expected on computers with only CDOSYS installed.

The full CDOEX object model is designed for use on computers with Microsoft Exchange 2000 Server installed. Code developed for CDOEX using CDOEX-specific objects will NOT execute correctly on computers without Exchange 2000 Server installed.

Note CDOSYS and CDOEX are not direct replacements for CDO 1.21 (CDO.DLL); their presence has no effect on the CDO 1.21 library. For more information about CDO libraries, click the following article numbers to view the articles in the Microsoft Knowledge Base:

195683 INFO: Relationship between 1.x CDO Libraries and CDOSYS.DLL

171440 INFO: Where to acquire the CDO Libraries (all versions)

Additional query words: CDOSYS CDOEX Visual Basic Reference missing

Keywords: kbpending kbprb KB318823

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.