HOWTO: Debug a MAPI Transport Provider
ID: Q200026
|
The information in this article applies to:
-
Extended Messaging Application Programming Interface (MAPI), version 1.0
-
Microsoft Visual Studio versions 6.0, 97
SUMMARY
It is often necessary to debug your transport provider during the development process. This article describes how to debug a MAPI Transport provider.
MORE INFORMATION
The following are the necessary steps to take when debugging a MAPI transport:
- Start an instance of Microsoft Visual C++ program with no project or workspace loaded.
- Start Microsoft Outlook.
- In Microsoft Visual C++, select the Build menu. Click Start and choose "Attach to Process..."
- Select MAPISP32.exe from the list of processes and click OK.
- From the File menu, select the File and choose "Open..." to load a source code file from your project in which you want to set a breakpoint.
You can also use WinDbg that comes with Windows NT Resource kit to debug MAPI Transport Provider. The following are the steps when you debug with WinDbg:
- Start an instance of Windows Debugger.
- Start Microsoft Outlook.
- From the Debugger menu, click Debug and select "Attach to a Process..."
- Select MAPISP32.exe from the list of processes and click Select.
- From the File menu, select the File and choose "Open Source File ..." to load a source code file from your project in which you want to set a breakpoint.
Additionally, you could load a second instance of Microsoft Visual C++ program to host your transport provider's project, so that you can edit and recompile your code. Make sure to stop and restart Microsoft Outlook when you recompile.
Additional query words:
kbDSupport
Keywords : kbMAPI kbMsg kbVC600 kbMAPI100 kbGrpMsg kbDSupport kbhowto
Version : WINDOWS:1.0,6.0,97
Platform : WINDOWS
Issue type : kbhowto
|