Discuss this help topic in MsgConnect Forum

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



Messenger.MessageProcessed

Messenger     See also    


Returns an incoming message and leaves it in the queue.

Declaration

[C++]
    void MessageProcessed(MCMessage* Message);

[Pascal]
    procedure MessageProcessed(var Message : TMCMessage);

[VB6]
    Sub MessageProcessed(Message As IMCXMessage)

[ActiveX]
    HRESULT _stdcall MessageProcessed([in] IMCXMessage * Message);

[C#]
    public void MessageProcessed(ref ref MCMessage Message)

[VB.NET]
    Public Sub MessageProcessed(ByRef Message As MCMessage)

[Java]
    public void messageProcessed(MCMessage message);

[Java ME]
    public synchronized void messageProcessed(MCMessage message);

[DLL]
    long __stdcall MCMessengerMessageProcessed(HMCMessenger h, MCMessage* Message);

Parameters

  • [DLL]h - handle to the Messenger object that was returned by Create method

  • Message - The message structure that was processed and should be discarded (reply sent, internal records cleared etc). See more here

Return value

[DLL]
    MC_OK is always returned.

Description

    Call this method after the application has taken the message using GetMessage or PeekMessage methods and has handled them. This is done to send a return value (if necessary), dispose of the binary data and clear internal records.
    This method together with GetMessage and PeekMessage is an alternative to using Queues.

    Note: you should not call this method in message handlers (i.e. if you are using Queue objects to handle messages).

See also:     Queue class     MCMessage structure     GetMessage     PeekMessage    

Discuss this help topic in MsgConnect Forum