Alaska Software Inc. - SOCMAPI problem
Username: Password:
AuthorTopic: SOCMAPI problem
Rudolf ReinthalerSOCMAPI problem
on Wed, 27 Jan 2010 11:50:33 +0100
Hello,
have a problem by a customer in the attached code by DllExecuteCall( 
SCDLLASKFLAG , FLAG_UNREAD ), get an error "dllExecuteCall Internal data 
structures corrupted". On my computer I have no problems.

regards
Rudolf



Code:
-----------------------------------------------
...

  if  DllExecuteCall( aSOCMapi[4] ) == 0
         if (nErr := DllExecuteCall(aSOCMapi[5])) != SUCCESS_SUCCESS
             NotifyError( nErr )
             return {}
         endif
     endif

     //BEGIN SEQUENCE

         //Open (i.e. initialize) Inbox folder, goto Top message
         if (nErr := DllExecuteCall( SCDLLINBOXOPEN  )) != SUCCESS_SUCCESS
             break nErr
         endif
         if (nErr := DllExecuteCall( SCDLLINBOXGOTOP )) != SUCCESS_SUCCESS
             //break nErr
         endif

         //--loop for every message in the inbox
         do while .T.

             //--Get Flags from Message
             nRead               := DllExecuteCall( SCDLLASKFLAG , 
FLAG_UNREAD            )  !!!!!!!!!!!!!!!!!!!!
             nRecipRequest       := DllExecuteCall( SCDLLASKFLAG , 
FLAG_RECEIPT_REQUESTED )
             nSent               := DllExecuteCall( SCDLLASKFLAG , 
FLAG_SENT              )