Adding a Channel to the Program Guide

[This is preliminary documentation and subject to change.]

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 Add Record index 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. See Adding a Station to the Program Guide.