GP Fault Using MAPI.DLL Calls in Visual Basic Procedure |
Q123185
In 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.
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.
You cannot use MAPI functions from a Visual Basic procedure in
Microsoft Excel or Microsoft Project in the form that is documented
for use with Visual Basic version 3.0.
NOTE: The MAPI calls that fail are the calls that use custom Type
definitions (MAPIMessage, MAPIRecip, or MAPIFile). Other calls that
don't use a custom Type (such as MAPILogon and MAPISendDocuments)
may work correctly.
MailLogOff method
MailLogOn method
MailRoutingSlip method
MailSend method
MailSendProjectMail method
MailSendScheduleNote method
MailSession property
MailSystem property
MailUpdateProject method
MailLogoff method
MailLogon method
MailSession property
MailSystem property
SendMail method
Messaging Application Programming Interface (MAPI) is the standard
programming interface proposed and supported by Microsoft for
accessing electronic messaging.
The following MAPI.DLL functions do not cause a GP fault when you use
them in a Visual Basic, Applications Edition, procedure:
MAPILogonYou receive a GP fault when you call any of the following MAPI.DLL functions in a Visual Basic, Applications Edition, procedure:
MAPILogoff
MAPIDetails
MAPISendDocuments
MAPIDeleteMail
MAPIResolveNameFor additional information, please see the following articles in the Microsoft Knowledge Base:
MAPIFindNext
MAPIAddress
MAPISaveMail
MAPISendMail
MAPIReadMail
Q125854 XL: Sending Mail From Microsoft Excel using VBAMAPI.DLL (Part 1)
Q125853 XL: Sending Mail From Microsoft Excel using VBAMAPI.DLL (Part 2)
For 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 :
Issue type :
Technology : kbExcelSearch kbZNotKeyword6 kbExcel500 kbProjectSearch kbVBASearch kbZNotKeyword3 kbExcel500c kbProject400 kbVBA100
|
Last Reviewed: January 17, 2001 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |