On Mon, 28 Aug 2006 13:00:03 +0200, Florian Klaempfl wrote: > [EMAIL PROTECTED] wrote: >> Marco van de Voort wrote: >>>>> Using C++ libraries from other languages is either bloat or >>>>> hard to use. >>>>> >> C++ libraries hard to use? >> Can you give me examples? >> > Try to make good and easy to use (object) pascal binding for Qt
I don't think QT would be easy at all. That Widget set uses multiple inheritance which Pascal does not support. That's why Borland had made CLX for Kylix and CLX works only with the qt 2.0 series which doesn't seem to be too good. Then you have licensing issues with qt itself. You either have to release your program as GPL or you have to license it from Trolltech. For FreeCLX, you have to have a Borland license or release under GPL. I'm not sure about WxWindows but I often thaught it was a wrapper for GTK or another widget set. The nice thing about GTK2 is that it's very well developed and relatively current. A lot of problems there are that there is no adiquate interface for making a GUI (I know about LCL but GTK2 support is incomplete and LCL is designed around fixed control sizws while in GTK2, the widget set is designed in relative sizes including spacers). You have to typecast thoughout your code and there may be something you can do in C++ that you can't do with Pascal. About the only way to do a good GUI with GTK2 isa to make a GUI, have it write out a C++ program, and then translate that (including Macros) to Pascal. My feeling about GTK2 is that you probably should make the headers dynamically load GTK2, determine the version, and with a thin wrapper, use the appropriate widgets depending on version. I say that because there are some depreciated widgets and newer widgets may not be in an older GTK library. -- Support the anti-Spam amendment - Join at http://www.cauce.org/ J. Peter Mugaas, [EMAIL PROTECTED] on 8/28/2006 http://wvnvm.wvnet.edu/~oma00215/ ICQ Number: 14297043 Finger for PGP Key _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
