Microsoft KB Archive/234357

= How To Debug the Sample Gateway Conversion DLLs =

Article ID: 234357

Article Last Modified on 7/1/2004

-

APPLIES TO


 * Microsoft Exchange Development Kit 5.5
 * Microsoft Exchange Server 2003 Software Development Kit

-



This article was previously published under Q234357



SUMMARY
This article explains how to setup the environment to debug the EDK sample gateway conversion DLLs: IPM_IN.dll and IPM_OUT.dll. This allows you to step through the conversion dll's source code.



MORE INFORMATION
The prerequisites for this article are:  The sample gateway is installed.

For more information on installing the sample gateway see:

200669 How To Install the Sample Gateway in Exchange Development Kit

 You have debugged the sample by using the following steps:

199087 How To Debug the Sample Gateway as a Console Application



Use the following steps to setup up the environment to debug the EDK sample gateway conversion DLLs:  Build the debug versions and symbols for the two DLLs: IPM_IN.dll and IPM_OUT.dll. These projects can be found at:

 \MSSDK\samples\dbmsg\exchange\IPM_IN\IPM_IN.dsp \MSSDK\samples\dbmsg\exchange\IPM_OUT\IPM_OUT.dsp</ul>

You can use Microsoft Visual C++ to build the debug versions and symbols. In each project, select Build -> Set Active Configuration and pick the Win32 Debug configuration. Then, go to Project -> Settings -> Link and select "Generate debug Information". Now, build the project by selecting Build -> Batch Build, select the Win32 Debug build and click Build.</li> Copy IPM_IN.dll, IPM_IN.pdb, IPM_OUT.ddl and IPM_OUT.pdb from the respective debug directories to the WinNT/system32 directory.</li> In Microsoft Visual C++, open the sample gateway project you made in

199087 How To Debug the Sample Gateway as a Console Application

</li> Select Project -> Settings -> Debug and select Additional DLLs from the Category list. Now, add IPM_IN.dll and IPM_OUT.dll to the list of modules.</li> From the File menu select "Open", to open the IPM_IN and IPM_OUT source files you want to modify and set break points with by selecting F9. For example, you may want to set a break point in IPM_IN.cpp on the statement WINAPI DllEntryPoint.</li> Click F5 (Debug Go) to start debugging.</li></ul>

Keywords: kbhowto kbmsg KB234357

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.