Microsoft KB Archive/315367

= Simple MAPI Sample Written in C# =

PSS ID Number: 315367

Article Last Modified on 4/22/2003

-

The information in this article applies to:


 * Simple Messaging Application Programming Interface (MAPI)

-



This article was previously published under Q315367



SUMMARY
The SimpleMAPITest sample project demonstrates how to call Simple MAPI code from C#. This sample makes use of the class published in the following Knowledge Base article:

315653 SAMPLE: SimpleMAPIAssembly Demonstrates Use of Simple MAPI from a .NET Application



MORE INFORMATION
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:

http://www.microsoft.com/partner/referral/

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

To build this sample project, follow these steps:  Download the assembly provided in the following Knowledge Base article:

315653 SAMPLE: SimpleMAPIAssembly Demonstrates Use of Simple MAPI from a .NET Application

 Open SimpleMAPI.sln in Microsoft Visual Studio .NET. On the Build menu, click Build Solution to build the assembly as a DLL. Download the SimpleMAPITestSample code included in this article. Open SimpleMAPITest.sln in Visual Studio .NET. Right-click SimpleMAPITest in the Solution Explorer, and then click Add Reference. Click Browse, and then browse to the DLL file that you built in step 3 (SimpleMAPI.dll).</li> Click Open, then click OK to add the reference.</li> On the Build menu, click Build Solution to build the sample.</li> On the Debug menu, click Start to run the sample.</li> Select the various buttons to run code that calls each Simple MAPI function.</li></ol>

The following file is available for download from the Microsoft Download Center:

Download SimpleMAPITest.exe now

Release Date: April 25, 2002

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file. The file.exe (or file.hqx) file contains the following files.

<div class="references_section">