dOPC Client Toolkit Help file
TdOPCEventSubscription.OnEvent Method
C++
public: __fastcall __stdcall HRESULT OnEvent(
    OPCHANDLE hClientSubscription, 
    BOOL bRefresh, 
    BOOL bLastRefresh, 
    DWORD dwCount, 
    PONEVENTSTRUCTARRAY pEvents
);
C#
public OnEvent(
    OPCHANDLE hClientSubscription, 
    BOOL bRefresh, 
    BOOL bLastRefresh, 
    DWORD dwCount, 
    PONEVENTSTRUCTARRAY pEvents
);
Visual Basic
Public Sub OnEvent(
    hClientSubscription As OPCHANDLE, 
    bRefresh As BOOL, 
    bLastRefresh As BOOL, 
    dwCount As DWORD, 
    pEvents As PONEVENTSTRUCTARRAY
)

callback procedure: we get a new event for OPC AE Server 

OnEvent is generated when a new event on the OPC AE server occurred.

A message will be sent to the TdOPCEventServer object.

What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.