CanEasy COM-Help
CanEasy::IMessageCol Interface Reference
Inheritance diagram for CanEasy::IMessageCol:
CanEasy::ICol

Detailed Description

Collection of messages

interface IMessageCol : ICol
{
HRESULT Item([in] VARIANT vIndex, [out, retval] IMessage** ppVal);
HRESULT Send();
HRESULT AddMessage([in] BSTR bstrMsgName, [in] long lMsgId, [in] long lDlc, [out, retval] IMessage**);
HRESULT TxEnabled([in] VARIANT_BOOL newVal);
HRESULT Delete();
HRESULT AddItem(IDatabaseItem* pData);
};

Definition at line 4231 of file cand_tlb.idl.

Member Function Documentation

◆ AddItem()

HRESULT CanEasy::IMessageCol::AddItem ( IDatabaseItem pData)

Adds an already created message into the collection

◆ AddMessage()

HRESULT CanEasy::IMessageCol::AddMessage ( [in] BSTR  bstrMsgName,
[in] long  lMsgId,
[in] long  lDlc,
[out, retval] IMessage **   
)

Adds a new message

Parameters
bstrMsgNameName of the new message
lMsgIdMessage identifier
lDlcByte length
Returns
Pointer to new created message

◆ Delete()

HRESULT CanEasy::IMessageCol::Delete ( )

Deletes all messages in the collection

◆ Send()

HRESULT CanEasy::IMessageCol::Send ( )

Sends all messages from the collection

Property Documentation

◆ Item

IMessage CanEasy::IMessageCol::Item([in] VARIANT vIndex)
get

Returns message by name or index

◆ TxEnabled

VARIANT_BOOL CanEasy::IMessageCol::TxEnabled
set

Activates/Deactivates transmission of all messages

CanEasy::IMessageCol::Send
HRESULT Send()
CanEasy::IMessageCol::AddMessage
HRESULT AddMessage([in] BSTR bstrMsgName, [in] long lMsgId, [in] long lDlc, [out, retval] IMessage **)
CanEasy::IMessageCol::AddItem
HRESULT AddItem(IDatabaseItem *pData)
CanEasy::IMessageCol::TxEnabled
VARIANT_BOOL TxEnabled
CanEasy::IMessageCol::Item
IMessage Item([in] VARIANT vIndex)
CanEasy::IMessageCol::Delete
HRESULT Delete()