Discuss this help topic in MsgConnect Forum

Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



MCErrorProc

See also    


Application-defined function that is called when the error happens during message delivery.

Declaration

[C++]
    typedef void (STDCALLCONV *MCErrorProc)(unsigned long UserData, MCMessage& Message, long ErrorCode);

[Pascal]
    TMCErrorProc = procedure(UserData: Cardinal; var Message: TMCMessage; ErrorCode : integer);

[VB6]
    Event MCXMessenger2.OnError(Message As IMCXMessage, ErrorCode As Long)

[ActiveX]
    HRESULT _stdcall IMCXMessengerEvents2.OnError([in] IMCXMessage * Message, [in] long ErrorCode);

[C#]
    public delegate void MCErrorProc(int UserData, ref MCMessage Message, int ErrorCode);

[VB.NET]
    Public Delegate Sub MCErrorProc(ByVal UserData As Object, ByRef Message As MCMessage, ByVal ErrorCode As Integer)

[Java]
    public interface MCErrorProc {public void errorProc(long userData, MCMessage message, int ErrorCode);}

[Java ME]
    public abstract interface MCErrorProc {public void errorProc(long userData, MCMessage message, int ErrorCode);}

[DLL]
    typedef void (__stdcall *MCErrorProc)(unsigned long UserData, MCMessage* Message, long ErrorCode);

Parameters

  • UserData - Application-defined parameter that was set in SendMessageTimeoutCallback function.
  • Message - Message which was sent and during which delivering error happened.
  • ErrorCode - Code of error. For more information see here.

Description

    This function is called by Messenger when the error happens during message delivery initiated with SendMessageTimeoutCallback. UserData parameter is set by the application and in object-oriented environments can contains the pointer to the object instance.

Discuss this help topic in MsgConnect Forum