How To Implement an interface in ATL?
-
Saturday, April 07, 2012 2:26 AM
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 07, 2012 2:51 AM
All Replies
-
Saturday, April 07, 2012 9:45 AM
why not simply create a pure com dll in c++ without ATL and do whatever you want.
Thanks
Rupesh Shukla
-
Saturday, April 07, 2012 1:41 PM
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
- Proposed As Answer by Jesse JiangMicrosoft Contingent Staff, Moderator Wednesday, April 11, 2012 11:44 AM
- Marked As Answer by Jesse JiangMicrosoft Contingent Staff, Moderator Friday, April 20, 2012 7:45 AM

