Christian Iversen wrote:
> On Thursday 26 January 2006 12:55, Felipe Monteiro de Carvalho wrote:
>
>>Hello,
>>
>>Attached is a patch that changes the current Qt interface into a Qt4
>>interface.
>>
>>The following widgets work: TApplication, TCustomForm, TCustomButton,
>>TCustomMemo
>>
>>It uses Jen Dean qt4 wrapper, which is basically a 800kb .so file that
>>needs to be on the library path for lcl-qt4 programs to work.
>
>
> I'll bet the farm that the 800kb file is not needed!
>
> All you need to do is change the header file slightly. I ported the modplug
> (module player) header code to linux. Now, modplug is C++, so of course this
> was a bit of a challenge. However, I managed to use the following style:
>
> Procedure SoundFile_FreeSample(p: Pointer); CDecl; External {$IFDEF
> DYNLINK}libmodplugname{$ENDIF} Name '_ZN10CSoundFile10FreeSampleEPv';
>
> Function SoundFile_ReadS3M (Obj : Pointer; lpStream : Pointer; dwMemLength:
> dword): Bool; CDecl; External {$IFDEF DYNLINK}libmodplugname{$ENDIF} Name
> '_ZN10CSoundFile7ReadS3MEPKhm';
>
> and so on.
How do you handle e.g. virtual calls :) ?
>
> This works perfectly, and ensures that I never need any "glue" layer like an
> 800kb .so :-)
>
> I even imagine the Qt4 headers could be converted automatically (like I
> suspect all the other bindings have been)
>
> (yes, I know this only works with GCC, but the principle applies to any
> compiler)
>
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives