Platform SDK: Broadcast Architecture

Adding a Channel to the Program Guide

The following example creates a new channel.

//Define a channel
CChannelT cct(AFX_RFX_LONG_PSEUDO_NULL, m_lTuningSpace, 42
    , codtDummy, codtDummy, 0, cs.StationID()
    , _T("Broadcast Architecture channel"), _T("attachedWebPage.htm")
    , 1, 1, 1, 1, COleDateTime::GetCurrentTime());

Note  The C Station ID field of the Channel table contains the record number of the station entry to be associated with a channel. This functionality means that before a channel can be added, its associated station record must already exist in the Guide database. For information on adding a station record, see Adding a Station to the Program Guide.