Talk:Defining a COM Object's Interface

From RAD Studio
Jump to: navigation, search

There is a bug in the sample code provided for "Exposing events to clients", paragraph 7.
The line that read:
    EventSink := IUnknown(FEvents[I]) as IMyAutoObjectEvents;
should be:
    EventSink := IUnknown(EventSinkList[I]) as IMyAutoObjectEvents;

There is also and extra "</li>" after the last "end;".

In paragraph 8, it it not stated that the first sample line is Delphi syntax and the second is C++ syntax.

--
Francois Piette
OverByte