[fpc-pascal]FPC interfaces compatible with COM interfaces ?

Gabor DEAK JAHN djg at tramontana.co.hu
Wed Apr 4 06:42:42 CEST 2001


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: djg at tramontana.co.hu





More information about the fpc-pascal mailing list