Can i inherit from an existing interface in the IDL

I have an interface IAction in my IDL file and another interface IRecorderListener.Can i do something like

[
    object,
      uuid(6138896D-DE0C-41AB-9DAE-3AD877205B2B),
      helpstring("IAction Interface"),
      dual,
      pointer_default(unique)
]
         interface IActionCtrl :IRecorderListenerCtrl
      {  
        )
I will be casting the IActionCtrl objects to the IRecorderListenerCtrl.The above code compiles ,but is it feasible to do.
I am porting a c# code to ..NET.
aslamshikoh1Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
fridomConnect With a Mentor CEO/ProgrammerCommented:
Yes you can do that. But I would suggest quering for the proper interface. But QueryInterface does the casting more or less as you wan to do it by hand.

Regards
Friedrich
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.