TD 2005 Constants-problem or Outlook2003-problem or ... (cgmail.apl)

forum.gupta.bugreport (2005-2010)
Manuel Volz

TD 2005 Constants-problem or Outlook2003-problem or ... (cgmail.apl)

Post by Manuel Volz » 13 Jan 2006, 16:50

 Posted by:  Manuel Volz 

Test with cgmail.apl: EmailReadNextMessage
Number: MAPI_E_NO_MESSAGES = 16

with Outlook 2000 ok
with Outlook 2003 the evaluation of nRetVal = MAPI_E_NO_MESSAGES fails,
it jumps to __EmailReturnValid.

Changing
nRetVal = MAPI_E_NO_MESSAGES
to
nRetVal = 16
solves the problem.

Is this a general problem with constants or a problem with maili41 or what?

cgmail.apl: EmailReadNextMessage
Set nRetVal = MailGetNextMessage( cv_nEmailSession, '',
sDateReceived, iv_sEmailPrevRef, iv_sEmailPosRef, sMsgID, sSubject,
sText, sOriginator, sRecipients, sAttachments, bUnreadFlag,
bRetReceipt, nPriority,FALSE, bUnreadOnly)
If nRetVal = MAPI_E_NO_MESSAGES
Call __EmailDisplayDebugMsg(4)
Set bRetVal = FALSE
Else If __EmailReturnValid(nRetVal)
Call __EmailDisplayDebugMsg(5)
Set bRetVal = TRUE

German Office2003 SP2

Best regards
Manuel Volz
P&I AG

Return to “gupta.bugreport”

Who is online

Users browsing this forum: [Ccbot] and 0 guests