[mythtv] Re: compiling mythtv frontend for cygwin
Mario L
superm1 at gmail.com
Thu Sep 30 02:45:02 EDT 2004
When you did the original work with Myth/cygwin, did you run into any
troubles assigning the WId of the qt widget to the handle that directX
uses? I can't seem to get past this issue - and it seems to be the
big problem right now with directX:
videoout_dx.cpp:162: error: invalid conversion from `WId' to `HWND__*'
If i try to explicity cast (wnd = (HWND)wind), I am getting what I
deduced to be parameter errors - which make me beleive that this
explicit cast isn't the correct way to do it?
code snipet:
//dxresult = IDirectDraw2_SetCooperativeLevel(ddobject, wnd, DDSCL_NORMAL);
dxresult = ddobject->SetCooperativeLevel(wnd, DDSCL_NORMAL);
cout<<"dx result was: "<<dxresult<<endl;
cout<<"DDERR_INVALIDPARAMS is "<<DDERR_INVALIDPARAMS <<endl;
output:
2004-09-30 01:19:56 DirectXInitDDraw
dx result was: -2147024809
DDERR_INVALIDPARAMS is -2147024809
2004-09-30 01:19:56 cannot set direct draw cooperative level
More information about the mythtv-dev
mailing list