The information in this article applies to:
SUMMARYThis sample consists of a header file that provides debugging routines to assist developers of messaging applications. MORE INFORMATIONThe following file is available for download from the Microsoft
Download Center. Click the file name below to download the file: Mapiasst.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. The Mapiasst.exe sample, contains the following two files:
Mapiasst.h includes the following three debug macros: MAPI_ASSERT(HRESULT)Pass MAPI_ASSERT a HRESULT and MAPI_ASSERT gives you basic error output and returns you to the debugger at the point where the error occurred.Sample Output:
MAPI_ASSERT_EX(HRESULT)MAPI_ASSERT_EX works similar to MAPI_ASSERT and gives you the same information along with the meaning of the HRESULT error code. Again, you will be returned back to the debugger at the point of error.Sample Output:
SHOWTABLE(LPMAPITABLE)SHOWTABLE uses the Tblvu32.dll function ViewMapiTable() to display the passed in MAPITable (LPMAPITABLE) in a GUI dialog box. This is a good tool for debugging your MAPITables.NOTE: Tblvu32.dll is available from the Microsoft FTP site at ftp.microsoft.com\Developr\Mapi\Samples\Mfcapps.zip) Here is a short sample of how these debugging routines may be used:
Additional query words: ASSERT MAPI SHOWTABLE MAPI_ASSERT MAPI_ASSERT_EX debug Table Tables
Keywords : kbcode kbfile kbMAPI kbMsg kbEDK400 kbEDK500 kbMAPI000 kbMAPI100 |
Last Reviewed: January 14, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |