COM interface wrapper classes

Giganews Newsgroups
Subject:COM interface wrapper classes
Posted by: Dylan Thomas
Date:Fri, 29 Aug 2008

<Gripe>This question has probably been asked several times over the years but searching for Delphi related info gets harder and harder as time goes by.
</Gripe>

When I import a type library for a COM visible .NET library and I choose to generate component wrappers, many of the property setters show the following comment:

{ Warning: The property TicketNumber has a setter and a getter whose
    types do not match. Delphi was unable to generate a property of
    this sort and so is using a Variant as a passthrough. }

Questions:

- The setter and getter types *do* match so why is Delphi doing this?
- Does using the variant imply late binding? I believe so but want to make sure.
- This is done for all WideString properties and properties whey the type is itself and interface. Why?

Thanks for you help

Replies