[lazarus] TList and TStringList again...

Baeseman, Cliff Cliff.Baeseman at greenheck.com
Mon Aug 16 13:03:52 EDT 1999


Well I am not using any c interface at the moment to talk to qt at all and
no extern calls either. The whole thing I am messing with at the moment is
using unix sockets to work with the qt engine...

In this fashion I have total control over the way in which I implement the
qt side without affecting the lcl in any way.

IOW I am just going to provide messaging thru a sockets implementation. This
may be a very cool way to implement because it would open some big web type
capabilities as well.



Cliff

-----Original Message-----
From: Michael Van Canneyt [mailto:michael.vancanneyt at wisa.be]
Sent: Monday, August 16, 1999 10:45 AM
To: lazarus at miraclec.com
Subject: RE: [lazarus] TList and TStringList again...




On Mon, 16 Aug 1999, Baeseman, Cliff wrote:

> Michael ,
> 
> can we just call external to reference a C++ lib such as in QT. I just
> assumed we could not because of the name mangling that occurs in compiled
> C++ libs.

You can do that, no problem. If you solve the name mangling by yourself,
I see no problem in it.

The MAIN reason we don't support C++ is not the name mangling; the main
reason
is the multiple inheritance.

We are planning to do something like
  TQTClass = cppclass (some,parent,classes)
    Method1
    Method
    end;
But for this the compiler needs to have a notion of multiple inheritance and
the way the VMT's are constructed in C++ This will take some time before it
will be implemented...

> 
> It makes little difference, I am not doing that right now. I am just
looking
> at my available options.

I see no problem in what you are doing; in fact the C interface to the QT
C++
libs does exactly that: it provides C calls that map to C++ mangled names
methods;
So in FPC it should work just as well...

Michael.

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list