Platform SDK: DirectX

DirectXEvent.DXCallback

The DirectXEvent.DXCallback method provides a callback routine for event handles.

object.DXCallback(eventid As Long)

Parameters

object
Object expression that resolves to a DirectXEvent object.
eventid
The handle to the event.

Error Codes

If the method fails, an error is raised and Err.Number is set.

Remarks

When you implement DirectXEvent in a form, you must also supply an implementation of the DirectXEvent.DXCallback method. The declaration and end of the method are automatically placed in the Code window when you select DirectXEvent in the Object box and DXCallback in the Procedures/Events box. The method takes the following form:

Private Sub DirectXEvent_DXCallBack(ByVal eventid as Long)
  ' Add your own event-handling code 
  .
  .
  .
End Sub

The event handle passed to the method is one you created by using DirectX7.CreateEvent.

See Also

DirectX7.SetEvent