Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2001-04

FPC interfaces compatible with COM interfaces ?

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Thomas Schatzl

Hello all,

are the FPC interfaces binary compatible with COM interfaces ? So that it were possible to interface to existing COM classes like it possible with Delphi ? No need to create new COM interfaces (or extend them or whatever) but simply call them in a more convenient way.
I guess not, but it never hurts to make sure and ask since a long time has passed when I last asked....

Regards,
Thomas

Reply by email

Gabor DEAK JAHN
to Thomas Schatzl

At 4/2/01 04:12 PM, you wrote:

Thomas,

are the FPC interfaces binary compatible with COM interfaces ? So that it were possible to interface to existing COM classes like it possible with

Delphi?

I call an OLE Automation server from a program but I couldn't find a better way than to implement my own calling interface. Simple but requires a considerable amount of typing.

I had a lot of headache before I realized that the variables used in the process have to be aligned on four-byte boundaries and, as FPC does not provide a means to specify alignment (I don't mean records but plain variables), I had to pad my important variables manually. Also I found that it only works if I use the -al switch. I didn't actually investigate why...

Regards,

   Gabor DEAK JAHN

------------------------------------------------------------------- Gabor DEAK JAHN -- Budapest, Hungary.
WWW: www.tramontana.co.hu
E-mail:

Reply by email

Thomas Schatzl
to Thomas Schatzl: are the FPC interfaces binary compatible with COM interfaces ? So that it were possible…

Hello,

here's a reply from Florian Klaempfl to me in private due to problems with the mailing list server (translated). Probably someone is interested in it too:

Hello all, are the FPC interfaces binary compatible with COM interfaces ?

Should be the case.

So that it were possible to interface to existing COM classes like it possible with Delphi ? No need to create new COM interfaces (or extend them or whatever) but simply

Should be possible too.

call them in a more convenient way. I guess not, but it never hurts to make sure and ask since a long time has passed when I last asked....

COM - support for Interfaces has not been tested yet but should work in principle. The Delphi DX8 headers should compile perfectly.

---------- end of reply

Note that some small problems / Delphi incompatibilities are remaining. These incompatibilites are currently being resolved by him.

Regards,
Thomas

Reply by email