Sign in Join

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

Mailing lists / fpc-pascal / 2010-05

TComponent with Corba Interfaces

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

I'm using TComponent has one of my base classes, but extending my classes with Corba style Interfaces. Will this not conflict with TComponent which already uses IUnknown (COM style interface)?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 5 lines
Hi, I'm using TComponent has one of my base classes, but extending my classes with Corba style Interfaces. Will this not conflict with TComponent which already uses IUnknown (COM style interface)?

Why should it ? The style of the interface only affects the interface. There is no reason why a class cannot implement interfaces of both types, independently of one another.

Michael.

Reply by email

Graeme Geldenhuys
to Michael Van Canneyt

Michael Van Canneyt het geskryf:

Why should it ? The style of the interface only affects the interface.

I haven't noticed any issues, but was a bit concerned. I don't know how different the internal workings are between COM and Corba interfaces. So I thought I would ask before I got to far ahead with my current code. So I'll just continue coding as normal then - thanks for the quick response.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 9 lines
Michael Van Canneyt het geskryf: > > Why should it ? The style of the interface only affects the interface. I haven't noticed any issues, but was a bit concerned. I don't know how different the internal workings are between COM and Corba interfaces. So I thought I would ask before I got to far ahead with my current code. So I'll just continue coding as normal then - thanks for the quick response.

With COM interfaces, reference counting mechanisms are inserted, with initialization/finalization and whatnot.

With CORBA interfaces, no such 'extra' code is generated.

Michael.

Reply by email