Click to See Complete Forum and Search --> : How to add a tlb file into a ATL project and implement an interface define in this tlb


leo liu
May 18th, 1999, 05:13 AM
Visual C++/ATL 3.0

I have a TLB file which define some interface.
And I create an ATL control.
Now I want to implement an interface that was defined in the TLB.
For example:

interface ISomeInterface is define in TLB.
CSomeControl is an ATL control.

How an I implement ISomeInterface in control CSomeControl?

RajM
May 18th, 1999, 05:54 PM
Hi,
Open the project workspace which cotains CSomeControl,go the class view and right click on CSomeControl.Choose the menu item impliment interface and browse for the typelib which contains ISomeInterface and dont forget to check the box near ISomeInterface.If u click on OK,u will find that the Wiz has derives CSomeControl from ISomeInterface and added the skeleton implementions for all the methods of ISomeInterface in teh header file for CSomeControl