FILE: Mfccdo.exe: Collaboration Data Objects with Visual C++

ID: Q178480

The information in this article applies to:

SUMMARY

Collaboration Data Objects (formerly known as Active Messaging) provides a means for sending, receiving, and processing messages programmatically. While most of the documentation provides sample code for Visual Basic, some people prefer to create C/C++ applications to perform the same tasks.

This article contains two code samples. The samples are an illustration and give developers a starting point in writing Collaboration Data Objects (CDO) applications in C/C++.

MORE INFORMATION

The following files are available for download from the Microsoft Software Library:

 ~ Mfccdo.exe (size: 3755397 bytes) 
 ~ Sampcdo.exe (size: 2288408 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

README.1ST (for Mfccdo.exe)

CDOMFC Sample Application

This project was generated and built on the use of Collaboration Data Objects (CDO) (formerly known as Active Messaging) version 1.1. However, the functionality that is illustrated in this application is backwards- compatible with 1.0 (except for creating of MAPI.Session) and forward- compatible with version 1.2 that is now available with Microsoft Exchange Server 5.5.

Purpose

This application provides a working sample for troubleshooting problems when calling the CDO library with the Microsoft Foundation Classes (MFC) COleDispatchDriver class.

Application Files

The following files are included with this sample:

CDO Functionality Illustrated

The following tasks are illustrated by this application:

Although there is a tremendous amount of functionality that is not illustrated in this basic sample, the basics for calling any of the methods, modifying the generated classes, and getting/setting properties can be applied to all other areas of the CDO library.

Modification of ClassWizard-Generated Files

The Olemsg32.h and Olemsg32.cpp files were generated by the ClassWizard from the Olemsg32.dll library. These files were then modified in the following ways:

Some classes not used by this sample were also modified and methods overridden to provide a starting point for re-use.

Readme.txt (for Sampcdo.exe)

CDOSAMP Sample Application

This project was created and built on the use of Collaboration Data Objects (CDO) (formerly known as Active Messaging) version 1.1. However, the functionality that is illustrated in this application is backwards- compatible with 1.0 (except for creating of MAPI.Session) and forward- compatible with version 1.2 that is now available with Microsoft Exchange Server 5.5.

Purpose

This application provides a working sample for troubleshooting problems when calling the CDO library directly with InvokeHelper, GetProperty, and SetProperty. This sample is implemented as a Console application in order to keep it as simple as possible.

Application Files

The following files are included with this sample:

CDO Functionality Illustrated

The following tasks are illustrated by this application:

Although there is a tremendous amount of functionality that is not illustrated in this basic sample, the basics for calling any of the methods and getting/setting properties can be applied to all other areas of the CDO library.

Additional query words: ActMsg OleMsg vc50

Keywords          : kbcode kbfile kbCDO kbCDO110 kbCDO120 kbMsg 
Version           : WINDOWS:1.1,1.2
Platform          : WINDOWS

Last Reviewed: March 18, 1999