[MPlayer-cygwin] usage of -wid on windows

Reimar =?UTF8?Q?D=F6ffinger?= Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Apr 29 09:57:25 CEST 2005


Hi,
On Thu, Apr 28, 2005 at 01:51:17PM +1000, nick at savs.net wrote:
> > what output do you get? (add a -v to the args)
> 
> The crashing was a separate issue, and a red herring. But regardless, I'm still not getting anywhere with getting "-wid" working. So so you know if I'm using the cmd line argument correctly, passing it the right ID? After a bit of stuffing around to get the output, it looks like one of my big symptoms is some failure in the directx vo code:
> 
> <vo_directx><FATAL ERROR>could not set cooperativelevel for hardwarecheck
> 
> Below are the output of
>     HWND myWindow;
>     ...
>     char *cmd_name="d:\\home\\nicholas\\src\\MPlayer-1.0pre7\\mplayer.exe";
>     char *args[6]; // null terminated array
>     char buf[200];
> 
>     LONG wid = GetWindowLong(myWindow,GWL_ID);

This so-called "Window-ID" has no use know to me... The name -wid comes from
the Linux/UNIX world, where window ids are actually used - under Windows
you have to use the Window _handle_...

>     sprintf(buf,"%ld",wid);

So that's myWindow here instead of wid.

Greetings,
Reimar D?ffinger




More information about the MPlayer-cygwin mailing list