Programming a WinTV card

Status
Not open for further replies.

andyfatbastard

Ars Legatus Legionis
21,183
Subscriptor
Ok, so I've had a trip to AV, followed by a pit stop in other hardware, in my attempt to program my WinTV card using Visual C++ in Win98.

Have any Arsians tried this before?

Now, I've managed to ascertain that I need to create an MFC (Microsoft Foundation Classes) application and include the WinTV OCX as a component, but the manual doesn't really tell me anything more.

I'd love to able to run the thing in a straightforward win32 app if possible, because there's way too much stuff in MFC that is required to learn before I even think about going near it.

I've been completely stumped so far, and the manual has been about as much help as a kick in the scrotum, but I've guessed the following:

In order to create a window that contains the input from the WinTV card, I need to run this function:

code:<HR>
Code:
 BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect, CWnd* pParentWnd, UINT nID,
		CFile* pPersist = NULL, BOOL bStorage = FALSE,
		BSTR bstrLicKey = NULL)

But I haven't got the foggiest idea what any of these parameters are. If someone could provide me with information on what they are, and how I can create valid inputs for them, that would be smashtastic.
 
Judging by other bits of MFC (which it looks like that derives from), the first is just any old string, the second should be probably something like <span style="font-family: 'Lucida Console', monospace;">WS_VISIBLE | WS_BORDER</span>, the third needs to be a valid <span style="font-family: 'Lucida Console', monospace;">CRect</span> or <span style="font-family: 'Lucida Console', monospace;">RECT</span> (it defines the size and position), the next needs to be a valid non-<span style="font-family: 'Lucida Console', monospace;">NULL</span> address of an MFC window, the next is the control's ID which should be documented somewhere. The rest get defaulted in.
 
Status
Not open for further replies.