Solved

Can i inherit from an existing interface in the IDL

Posted on 2007-11-27
1
230 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 72
haveThree challenge 22 123
pre4 challenge 19 110
Change to event 1 129
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

749 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