Microsoft DirectX 8.1 (C++)

Getting a Tune Request (Visual Basic)

Typically, a client application displays schedule entry information and enables the user to select an entry for viewing or recording. The application then obtains an ITuneRequest object from the Service object associated with the ScheduleEntry object.

The following example function returns an ITuneRequest object from a specified ScheduleEntry object. For simplicity, error-checking is omitted.

Public Function GetTuneRequest(SE As ScheduleEntry) As ITuneRequest
 
  ' Get the Service.
 
  Dim SEService As Service
  Set SEService = SE.Service
 
  ' Get the TuneRequest.

  Set GetTuneRequest = SEService.TuneRequest
 
End Function

The ITuneRequest object, represented by TuneReq, can now be passed to the video control. For more information, see Hosting the Video Control in a Visual Basic Form.