Solved

Can i inherit from an existing interface in the IDL

Posted on 2007-11-27
1
225 Views
Last Modified: 2013-11-17
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.
0
Comment
Question by:aslamshikoh1
1 Comment
 
LVL 24

Accepted Solution

by:
fridom earned 300 total points
ID: 20505178
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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now