[Kde-bindings] Qtruby Screenshot example program does not workon Windows

Melton, Ryan rmelton at ball.com
Thu Aug 5 16:11:18 UTC 2010


I think the HWND__* is kind of like a file descriptor where the user just passes it between function calls and doesn't actually use its contents directly.

Simply returning the pointer value to ruby and providing no support for the actual HWND__ class sounds like the right thing to do.  Where would that be implemented?

-----Original Message-----
From: Arno Rehn [mailto:arno at arnorehn.de] 
Sent: Thursday, August 05, 2010 10:06 AM
To: KDE bindings for other programming languages
Subject: Re: [Kde-bindings] Qtruby Screenshot example program does not workon Windows

On Thursday 05 August 2010 18:00:41 Melton, Ryan wrote:
> I tracked this down to a problem with the QWidget::winId() const method. 
> It returns a HWND__* which is not in the Smoke ClassMap.
> 
> Here is a snippet from smokedata.cpp from smoke/qtgui:
> static Smoke::Class classes[] = {
>     { 0L, false, 0, 0, 0, 0, 0 },	// 0 (no class)
>     { "HBITMAP__", true, 0, 0, 0, 0, 0 },	//1
>     { "HDC__", true, 0, 0, 0, 0, 0 },	//2
>     { "HFONT__", true, 0, 0, 0, 0, 0 },	//3
>     { "HICON__", true, 0, 0, 0, 0, 0 },	//4
>     { "HINSTANCE__", true, 0, 0, 0, 0, 0 },	//5
>     { "HPALETTE__", true, 0, 0, 0, 0, 0 },	//6
>     { "HRGN__", true, 0, 0, 0, 0, 0 },	//7
>     { "HWND__", true, 0, 0, 0, 0, 0 },	//8
I don't know anything about these Windows classes. Try adding them to one of 
the smokeconfig.xml files and regenerate your smoke libs. I don't know if this 
is correct, though. Maybe we should simply return the pointer value to ruby 
and provide no support for the actual HWND__ class.
I don't know enough of the Windows API to judge this properly, I guess.

-- 
Arno Rehn
arno at arnorehn.de
_______________________________________________
Kde-bindings mailing list
Kde-bindings at kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings



This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this  
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.



More information about the Kde-bindings mailing list