Discuss this help topic in MsgConnect Forum

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



Messenger.DispatchMessages

Messenger     See also    


Dispatches incoming messages.

Declaration

[C++]
    void DispatchMessages();

[Pascal]
    procedure DispatchMessages;

[VB6]
    Sub DispatchMessages()

[ActiveX]
    HRESULT _stdcall DispatchMessages( void );

[C#]
    public void DispatchMessages();

[VB.NET]
    Public Sub DispatchMessages()

[Java]
    public void DispatchMessages();

[Java ME]
    public synchronized void DispatchMessages();

[DLL]
    long __stdcall MCMessengerDispatchMessages(HMCMessenger h);

Parameters

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

Return value

[DLL]
    MC_OK is always returned.

Description

    Call this method from time to time to dispatch incoming messages. When the messages are dispatched, the recipient Queue class objects are searched for and, if found, their methods are used to find proper message handlers and invoke application code.
    Before passing the incoming messages to message handlers, DispatchMessages cleans outgoing message queues (removes expired messages) and processes message replies. This includes setting flags for pending SendMessage functions and calling callbacks set by SendMessageCallback functions.

See also:     Queue class     PeekMessage     GetMessage    

Discuss this help topic in MsgConnect Forum