Visual Basic Exchange

Dear Dr. GUI:

I've been looking for a way to automate some processes in Microsoft Exchange. Is there a Type Library or way to call functions in Microsoft Exchange from Visual Basic 4.0?

Sincerely,

Eric Dierkens

Dr. GUI replies:

Thanks for asking; Dr. GUI's been looking for a way to automate his billing. Although there are several ways to automate processes in Microsoft Exchange, the most important interface is Messaging Application Programming Interface (MAPI). MAPI provides the interface to Common Mail Calls (CMC), Simple MAPI, OLE Messaging, and Extended MAPI. For more information, see the book Win32 Messaging API (MAPI) in the MSDN Library (Product Documentation, SDKs, Win32 SDK).

There are at least two major approaches to using MAPI from Visual Basic 4.0.

· You can use the MAPI controls that come with the Professional and Enterprise editions. VBMAIL.VBP, a sample project that comes with Visual Basic, demonstrates the use of the MAPI controls by sending and receiving electronic mail.

· Manipulate the messaging object using the OLE Messaging Object Library to manipulate messages, attachments, folders, and addresses in Microsoft Exchange. An article in the MSDN Library, "Mapping the OLE Messaging Object Library: MAPI 1.0," (Technical Articles, Visual Basic Articles) explains this.