Yesup
 

Yamabay OECOM2

Outlook Express 6.0 COM/ActiveX with MIME and Property Support for VB developers

I. What is Yamabay OECOM2

Yamabay OECOM2 is a Microsoft Outllok Express 6.0 COM/ActiveX for Microsoft Visual Basic developers. In addition to the OECOM capabilities, it has the additional functions to read and enumerate e-Mail PropertySet and the MIME body parts/attachments. The write/append/delete Mime body parts and PropertySet functions will be available soon.

Microsoft Outlook Express is a  very popular e-Mail software on all version of Windows, but there is no simple way to program it without using C++ to explore the IStoreFolder , IStoreNameSpace, IMimeMessage and IMimePropertyTree interfaces. This OECOM2 wraps these interfaces and present to VB and COM/ActiveX programmers with the classes and methods which they are familiar with.

Your Ad Here

II. The class and the methods provided by OECOM2

The filename is tryoe1.dll and the class name is OE. Since OECOM2 is downward compatible with OECOM, please please refer to this page for the basic, non-Mime, non-PropertySet related functions. Below we only emphasize on Mime and PropertySet related methods.

2.1 OE methods: Mime Body Part Related

GetMimeMsgSrc(MessageID)

Get the Mime content, as VB String, of the message from message id MessageID. This method also serves as the "set cursor" fucntion for the subsequent Mime/propertySet related methods. After this method is called, the current body is the root body of the current message MessageID

GetMimeMsgChildBody(MessageID), GetMimeMsgParentBody(MessageID), GetMimeMsgNextBody(MessageID), GetMimeMsgPreviousBody(MessageID)

Get the Mime content, as VB String, of the Child/Parent/Next/Previous part of the current body part of the Mime message. The MessageID is not used, so put a zero there will be OK. Please note that after one of these methods are called, the newly pointed body becomes the current body.

GetMimeBodyDisplayName(MessageID)

Get the display name, as string, of the current Mime body part. 

 

 

2.2 OE methods: PropertySet related

GetPropertyList(MessageID)

Get a list of available properties in the current Mime message, so the messageID can be anything. The "list" is a string. The properties in this string are separated by "^" characters. So once you call this method, you can use a VB split function to get an array of the properties:

Dim pitems() as string

pitems = Split(oe1.GetPropertyList(id), "^")

For Each pitem In pitems

   cmbProperty.AddItem (pitem)

 Next

GetPropertyValue(PropVal)

Get the Property value, as string, of the property PropVal, also as String, from the current Mime message.

 

III. How to use the Sample VB Code

This sample code is an Outlook Express Explorer . It allows you to navigate through the OE folder tree and to read, create, delete, move, copy, mark, and unmark messages. You can use this to create, delete and rename folders. Mime and Properties information are available too. All the functions are made possible by Yamabay OECOM2. You will learn how to write your own OECOM2 based applications by looking into the sample source code.

Before you can use this Sample VB code, you will need to register this OECOM2 by doing regsvr32 tryoe1.dll. After the registration, you will need to reference to this tryoe1 COM object in your VB project.

Below are some screen shots of this VB program:

 

Download Yamabay OECOM2

BrotherSoft   Your Freeware Source!
Anti Spam WinASP Web2Image Skype Gateway Dashboard Chart OE6 COM/ActiveX
Copyright © 2000-2008 YamaBay