rajadb
August 1st, 2007, 05:35 AM
Hi,
I'm trying to write a digital TV application on XP / Visual Studio 2005 / using microsoft TV technology . To use the Video ActiveX control I've added msvidctl.dll to Class View - Add class - MFC class from active X control. This has generated a cpp wrapper class MSVidCtl over the activeX. Next I've inserted the activeX control in an appropiate dialog ( in the resource workshop ) and added the declaration
CMSVidCtl myTuner;
in the dialog header. Now in the cpp file , in the section
void CMediaDlg:: DoDataExchange(CDataExchange* pDX)
{
CDialog:: DoDataExchange(pDX);
DDX_Control(pDX, IDC_MSVIDCTL1, myTuner);
DDX_Control(pDX, IDC_VIDEOPLAYERCTRL1, myPlayer);
}
my Tuner has a null hWnd, unlike my other active X, which has a valid handle, which makes any further operation on the TV Video Control impossible. can anyone help me about what I'm doing wrong ?
I'm trying to write a digital TV application on XP / Visual Studio 2005 / using microsoft TV technology . To use the Video ActiveX control I've added msvidctl.dll to Class View - Add class - MFC class from active X control. This has generated a cpp wrapper class MSVidCtl over the activeX. Next I've inserted the activeX control in an appropiate dialog ( in the resource workshop ) and added the declaration
CMSVidCtl myTuner;
in the dialog header. Now in the cpp file , in the section
void CMediaDlg:: DoDataExchange(CDataExchange* pDX)
{
CDialog:: DoDataExchange(pDX);
DDX_Control(pDX, IDC_MSVIDCTL1, myTuner);
DDX_Control(pDX, IDC_VIDEOPLAYERCTRL1, myPlayer);
}
my Tuner has a null hWnd, unlike my other active X, which has a valid handle, which makes any further operation on the TV Video Control impossible. can anyone help me about what I'm doing wrong ?