locked
How To Implement an interface in ATL? RRS feed

  • Question

  • How do i have ATL setup a class for me in which i can implement a Interface that is located within a header file?

    in other words...

    How do i prevent a Simple Object that i create within my ATL project from trying to implement a customer interface and just have it inherit and use an interface that is already defined in a typelib or header file?

    • Edited by MikeLokI Saturday, April 7, 2012 2:51 AM
    Saturday, April 7, 2012 2:26 AM

Answers

  • MikeLokI wrote:

    How do i have ATL setup a class for me in which i can implement a  Interface that is located within a header file?

    in other words...

    How do i prevent a Simple Object that i create within my ATL project  from trying to implement a customer interface and just have
    it inherit and use an interface that is already defined in a typelib  or header file?

    Probably the easiest approach would be to let the wizard create a new  object implementing a new interface, then manually replace that new  interface's name in the source code with the name of the interface you  actually want to implement.


    Igor Tandetnik

    Saturday, April 7, 2012 1:41 PM

All replies

  • why not simply create a pure com dll in c++ without ATL and do whatever you want.

    Thanks


    Rupesh Shukla

    Saturday, April 7, 2012 9:45 AM
  • MikeLokI wrote:

    How do i have ATL setup a class for me in which i can implement a  Interface that is located within a header file?

    in other words...

    How do i prevent a Simple Object that i create within my ATL project  from trying to implement a customer interface and just have
    it inherit and use an interface that is already defined in a typelib  or header file?

    Probably the easiest approach would be to let the wizard create a new  object implementing a new interface, then manually replace that new  interface's name in the source code with the name of the interface you  actually want to implement.


    Igor Tandetnik

    Saturday, April 7, 2012 1:41 PM