EldoS
MsgConnect home / Documentation / Messenger.DispatchMessages method
Navigation
Web site
Support
Table Of Contents

Filter: C++  Pascal  ActiveX  C#  VB.NET  Java SE  Java ME  Palm  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();

[Palm]
    void DispatchMessages(void);

[DLL]
    long __stdcall MCMessengerDispatchMessages(HMCMessenger h);

Parameters

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

Return value

[DLL]
    If the function was called not from the same thread in which Messenger operates, MCE_WRONGTHREAD code is returned, otherwise MC_OK is 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    

 
Contact Us | Subscribe | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2005, EldoS Corporation