What’s in the Download

All of the sample code is located in \vbmsg\Samples\. In that folder are three subfolders:

Chapter 6

This folder contains a single subfolder, Messenger, which in turn contains the Visual Basic files for the Messenger 2000 application presented in Chapter 6. To load the project in Visual Basic, open \vbmsg\Samples\Chapter 6\Messenger\Messenger.vbp.

Chapter 7

This folder contains a Visual Basic .bas module with the code for converting MAPI property IDs to their textual descriptions, as explained in Chapter 7. The .bas module is located at \vbmsg\Samples\Chapter 7\basCdoPrTextFromCode.bas.

CdoHelper

This folder contains a Visual C++ project that implements the CdoHelper component. This component can be used by Visual Basic applications to add RTF-encoded text to messages being sent through CDO and to read RTF-encoded text from such messages. (CDO itself doesn’t support this feature.) The component can be used without knowing anything about C++, but the complete source code and project files are included for those who are interested. To use the component in Visual Basic, register it as described in the next section, then see Chapter 6 for instructions on its use. If you’re interested in loading the C++ project in Visual Studio, open \vbmsg\Samples\CdoHelper\CdoHelper.dsw.

Get CDO & MAPI Programming with Visual Basic: now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.