We help IT Professionals succeed at work.

Interfaces and typelibs

tomer_engel
tomer_engel asked
on
Medium Priority
437 Views
Last Modified: 2010-04-06
hello
im writing an ActiveX comonenet in Delphi5.
i want to sink events using the IConnectionPointContainer

this inteface is delared in the unit "ActiveX" (=="ActiveX.pas")

now,here's my problem--i'm writing type libarary using the TypeLib editor of the Delphi IDE. I'm exporting all my Intefaces ( my custom interfaces)but how do i make my CoClass support the IConnectionPointContainer in the TypeLib Editor (which will then build a type libarary the exports IConnectionPointContainer)
after checking--the declaration of this interface is in "OleAut32.DLL" ( and i can't improt this fle to the TypeLib Editor)

Thanx
Tomer
Comment
Watch Question

Commented:
visit http://www.techvanguards.com/com/concepts/events.asp
There's a link near the bottom to a short tutorial on Connection points. Also download the Events libarary unit - it should make your event handling MUCH easier

Author

Commented:
ok thanks
A)BUT the teory i know allready
i need in delphi to expose the IConnectionPointContainer throgh the Type libarary- i.e. : i want this interface to be exposed with other interfacesmy component supports (the exposure sould be through the type Lib.

How do i do that in DELPHI (DELPHI% to be more specifiec)
so the site given is not my answer

b)what is the event package you talked about-that could be my solution

thanx
tomer

Explore More ContentExplore courses, solutions, and other research materials related to this topic.