Yesup
 

Yamabay OECOM

Outlook Express 6.0 COM/ActiveX for VB developers

 (new version available with MIME/Property Support!)

I. What is Yamabay OECOM

To put it simple, Yamabay OECOM is a Microsoft Outllok Express 6.0 COM/ActiveX for Microsoft Visual Basic developers.

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 and IStoreNameSpace Interfaces. This OECOM wraps these two 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 OECOM

The filename is tryoe1.dll and the class name is OE.

2.1 OE methods: General

init

This is the first method to initialize OE class. 

2.2 OE methods: Folders Related

CreateSubFolder (CurrentFolderName, SubFolderName)

Create sub-folder SubFolderName from current folder CurrentFolderName.

RemoveFolder (FolderName)

Remove folder FolderName.

RenameFolder  (OldFolderName, NewFolderName)

Rename folder from OldFolderName to NewFolderName.

ShowFolders

Show all the Folder Names in a string delimited by vbCrLf.

2.3 OE methods: Messages Related

CopyMsgToFolder (MessageID, DestinationFolderName)

Copy message with message id MessageID to folder named DestinationFolderName.

CreateMsg (From, To, Subject, Body)

Create a new message in the current folder. The message is from From, to To, with the subject Subject, and the body of the message is Body.

GetMsgSrc (MessageID)

Get the content of the message from message id MessageID.

GetMsgSubject (MessageID)

Get the subject part of this message from MessageID

GetNextMsgID (MessageID)

Get the next message based on the current messaeg ID MessageID. Then how do we get the first message ? Just put 0 in MesageID field.

MarkMsgAsRead (MessageID)

Mark message MessageID as read.

MarkMsgAsUnRead (MessageID)

Mark message MessageID as ubread.

MoveMsgToFolder (MessageID, DestinationFolderName)

Move message MessageID from the current folder to the folder DestinationFolderName.

RemoveMsg (MesageID)

Remove message MessageID.

ShowMsgList (FolderName)

Show the message list in folder FolderName. ShowMsgList methods returns a string which contains the lines consists of  From+Subject delimited by vbCrLf

Your Ad Here

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. All the functions are made possible by Yamabay OECOM. You will learn how to write your own OECOM based applications by looking into the sample source code.

Before you can use this Sample VB code, you will need to register this OECOM 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 OECOM

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