Article ID: 810702 - Last Review: November 13, 2007 - Revision: 6.5 How to migrate the Collaboration Data Objects for NTS applications to Microsoft Collaboration Data Objects for Windows 2000On This PageSUMMARYThis step-by
step article describes how to migrate existing code based on the CDONTS object
model to CDOSYS. You can use the Cdonts.dll and Cdosys.dll object libraries to create and process e-mail by using Internet standard formats and protocols. Collaboration Data Objects for NTS (CDONTS) was originally implemented to use with Microsoft Commercial Internet Server (MCIS), and was included in the Windows NT Option Pack. CDONTS was also included as part of Windows 2000 for compatibility with Windows NT. CDONTS is not included with Microsoft Windows XP and subsequent releases of Windows. Microsoft Collaboration Data Objects for Windows 2000 (CDOSYS) was implemented and included as a Windows 2000 operating system component. The existing code that is based on CDONTS must migrate to CDOSYS. Feature comparisonThe following table compares operating system (OS) support and feature support in the Cdonts.dll and the Cdosys.dll libraries.Collapse this table
ExamplesThe following examples demonstrate how to perform the same task by using CDONTS and by using CDOSYS. Each of the following examples describes a feature that both libraries have, and then gives sample code for implementing the feature in each library. These code samples were verified by using Windows 2000 Service Pack 2 (SP2) and the following versions of the libraries:
Simple sendThis example is the most popular use for both libraries. In this case, both libraries write the message to the pickup directory of the SMTP server. The directory path is read from the local metabase.CDONTS exampleCDOSYS exampleSend HTML bodyThe following examples put HTML body text in the message. Otherwise, these examples are similar to the "Simple Send" examples. In both sets of examples, MIME multipart/alternative message format is used. Also, a plain text body is automatically created from the HTML. The plain text body is included as a text/plain body part.CDONTS exampleCDOSYS exampleSend with an attachment in MIME formatCDONTS exampleCDOSYS exampleSend with an attachment in Uuencode formatFor both libraries, to send the message with an attachment in Uuencode, change a property on the message to change the format.CDONTS exampleCDOSYS exampleSend Unicode message textThis example includes a Unicode character (the Euro symbol, €, Unicode code point 0x20ac) in the display name of the recipient and in the message text. In both examples, "€" is encoded into the utf-7 CharSet property. CDONTS must use the CP_UTF7=65000 constant. For CDOSYS, the CharSet name is unicode-1-1-utf-7.CDONTS exampleCDOSYS exampleREFERENCESFor more
information, visit the following MSDN Web sites:
816789
(http://support.microsoft.com/kb/816789/
)
Read access to the Everyone group is removed after you install Exchange 2000 Service Pack 3
| Article Translations
|
Back to the top
