SetAlertEvent
ClearAlertEvent


Version:

6.0

Description:

Registers the caller's class object and its event handlers with Visual CADD™, enabling events to be sent back to the caller's class object when the specified events have occurred.  This call is similar to VCSetAlertAppDllEx except that the event handlers reside within a class object rather than a straight DLL.

Declaration:

 

ActiveX/COM

Sub SetAlertEvent(ByVal iCode0 As Long, ByVal iCode1 As Long)
Sub ClearAlertEvent()

Parameters:

iCode0 - Specifies the events the external application wants to be notified of. This parameter can be a combination of the iCode0 flags specified in Alert Callbacks. If you do not want to be notified of any iCode0 events set the iCode0 flag to ALERT_APP_NONE.

iCode1 - Specifies the extended events the external application wants to be notified of. This parameter can be a combination of the iCode1 flags specified in Alert Callbacks.If you do not want to be notified of any iCode1 events set the iCode1flag to 0.

Notes:

SetAlertEvent is used in add-on tools and stand-alone custom interfaces which are using Visual CADD™ ActiveX/COM and have implemented a class object to receive and handle Visual CADD™ events.  In this case Visual CADD™ takes care of the messaging for you by firing events to the appropriate handler functions in the external class object.  The mechanisms used to set up the messaging and the way the messages are received by the add-on tool or application are different between SetAlertEvent and VCSetAlertAppDllEx, but the messages themselves and their use are exactly the same.

See Also:

VCSetAlertAppDllEx, VCClearAlertAppDll