Implementing more than one interfaces in same coclass
-
Hai, How can I implement more than one interfaces in same coclass using ATL Thanks George
-
Hai, How can I implement more than one interfaces in same coclass using ATL Thanks George
georgekjolly wrote:
How can I implement more than one interfaces in same coclass using ATL
This is the easiest way in VC6: You have to have a typelibrary for the interface you want to implement in your CoClass. This could mean that you define another interface in your IDL-file for your CoClass if it doesn't exist yet. Right-click your CoClass object in the ClassView and select "Implement interface..." and check the interfaces you want to implement in your CoClass.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown -
georgekjolly wrote:
How can I implement more than one interfaces in same coclass using ATL
This is the easiest way in VC6: You have to have a typelibrary for the interface you want to implement in your CoClass. This could mean that you define another interface in your IDL-file for your CoClass if it doesn't exist yet. Right-click your CoClass object in the ClassView and select "Implement interface..." and check the interfaces you want to implement in your CoClass.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknownHi Roger, I tried it, and its working. Now I am able to Query one interface from another(They belongs to different coclass) . Thanks George