Discuss this help topic in MsgConnect Forum

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



Messenger.PostMessage

Messenger     See also    


Sends a message to the recipient without waiting for result.

Declaration

[C++]
    void PostMessage(char* Destination, MCMessage* Message, MCMessageCredentials* Credentials);

[Pascal]
    procedure PostMessage( Destination : string; var Message : TMCMessage; Credentials : PMCMessageCredentials);

[VB6]
    Sub PostMessage(Destination As String, Message As IMCXMessage, Credentials As MCXMessageCredentials)

[ActiveX]
    HRESULT _stdcall PostMessage([in] BSTR Destination, [in] IMCXMessage * Message, [in] IMCXMessageCredentials * Credentials);

[C#]
    public void PostMessage(string Destination, MCMessage Message, MCMessageCredentials —redentials);

[VB.NET]
    Public Sub PostMessage(ByVal Destination As String, ByVal Message As MCMessage, ByVal Credentials As MCMessageCredentials)

[Java]
    public void postMessage(String destination, MCMessage Message, MCMessageCredentials credentials);

[Java ME]
    public synchronized void postMessage(String destination, MCMessage Message, MCMessageCredentials credentials);

[DLL]
    long __stdcall MCMessengerPostMessage(HMCMessenger h, char* Destination, MCMessage* Message, MCMessageCredentials* Credentials, bool* res);

Parameters

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

  • Destination - The address of the message recipient. See more here
  • Message - The message to be sent. See more here
  • Credentials - (optional) Credentials to be set for the message. Can be set to null (nil) if credentials system is not used. See more here

Return value

[DLL]
    If there was no transport found MCE_NOTRANSPORT is returned, otherwise MC_OK is returned.

Description

     This method sends a message for which reply is not needed. Destination Messenger doesn't send any reply to sender.
For information about error and timeout handling see Error and Timeout Handling topic.

Discuss this help topic in MsgConnect Forum