CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    15

    How to add a tlb file into a ATL project and implement an interface define in this tlb

    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?


  2. #2
    Join Date
    Apr 1999
    Posts
    37

    Re: How to add a tlb file into a ATL project and implement an interface define in this tlb

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured