The information in this article applies to:
SYMPTOMSIn a Microsoft Visual Basic, Applications Edition, procedure, when you call the MAPI.DLL in a Visual Basic procedure, you receive a general protection (GP) fault. CAUSE
Although it is possible to declare and call the Visual Basic MAPI functions
from a Visual Basic procedure in Microsoft Excel or Microsoft Project, the
calls usually cause a GP Fault.
WORKAROUNDSMicrosoft ProjectTo work around this problem, you can use the VBAMAPI.DLL file that is provided with Microsoft Project. This file provides the same Visual Basic interfaces to MAPI in a form that is compatible with Visual Basic, Applications Edition.Note that you can also use the built-in mail functionality provided in Microsoft Project. For example, you can use the following in a Visual Basic procedure: MailLogOff method Microsoft ExcelTo work around this problem, use the built-in mail functionality provided in Microsoft Excel. For example, you can use the following in a Visual Basic procedure:MailLogoff method MORE INFORMATION
Messaging Application Programming Interface (MAPI) is the standard
programming interface proposed and supported by Microsoft for
accessing electronic messaging.
MAPILogonYou receive a GP fault when you call any of the following MAPI.DLL functions in a Visual Basic, Applications Edition, procedure: MAPIResolveNameFor additional information, please see the following articles in the Microsoft Knowledge Base: Q125854 XL: Sending Mail From Microsoft Excel using VBAMAPI.DLL (Part 1) REFERENCESFor more information about the MailLogon Method or the MailLogoff Method, choose the Search button in the Visual Basic Reference (Excel) and type: MAPI mail sessionsFor more information about the MailLogon Method, choose the Search button in the Visual Basic Reference (Project) and type: MailLogOn Additional query words: gpf vba_pj.hlp
Keywords : |
Last Reviewed: October 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |