Re: Embed movie player using mplayer - How to get the wid on Windows?



Hi Hubert,

I withdrew the unwrap function from the code and the line now is:

*p_windowID = GDK_WINDOW_HWND(get_window());

I saw in this form looking into a code found on the internet.

Now the error is:
gui/VideoGui.cpp:32: error: cannot convert `Glib::RefPtr<Gdk::Window>' to `GdkDrawable*' for argument `1' to `void* gdk_win32_drawable_get_handle(GdkDrawable*)'

I tried to cast but the error continues...

Thanks...
P.F.Smorigo



On Thu, Aug 21, 2008 at 10:05, Hubert Figuiere <hub figuiere net> wrote:
On Thu, 2008-08-21 at 09:42 -0300, Paulo Flabiano Smorigo wrote:
> Hi Jens,
>
> Thanks for the reply. That's exactly what I need. I just stuck in a
> error when change from GDK_WINDOW_XID to GDK_WINDOW_HWND.
>
> The original line:
>
> *p_windowID = GDK_WINDOW_XID(Glib::unwrap(get_window()));
>
> Changed to:
>
> *p_windowID = GDK_WINDOW_HWND(Glib::unwrap(get_window()));
>
> The error is:
> gui/Player.cpp:32: error: invalid conversion from `void*' to `int'

You should know better what a HWND is defined as as I do. (I don't do
windows)

BTW I don't think you want to unwrap. What you want is call the method
gobj() to obtain the underlying GObject instance.

Hub
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]