[lazarus] I can do QT from Free Pascal

Florian Klaempfl Florian.Klaempfl at gmx.de
Thu Oct 14 05:59:33 EDT 1999


Cliff Baeseman wrote:
> 
> After a couple of nights of hacking I figured out how to run QT from Free
> Pascal.  I was just doing a test of something I had mentioned earlier.  I am
> glad I did this little trial run I found out one hell of alot about the g++
> compiler, ld, and the Free Pascal Compiler.
> 
> Cliff
> 

I think the simplest way (but a lot of work!) to use Qt is writing C wrappers to
the method calls like:

...
extern "C" {

void QObject_Method(QObject *this,int param1)
{
   this->Method(param1);
}
}

Or did you collect some knowledge about VMTs etc and simulate that using records of
proc. vars?

Because our idea is to create a new class type cppclass:

type
   QObject = cppclass
      procedure Method;cppdecl;external:
      ...
   end;

to support cppclasses but for that we need some information how C++ classes work, the
main is the vmt which is even different between egcs and old gcc






More information about the Lazarus mailing list