?
Solved

Can i inherit from an existing interface in the IDL

Posted on 2007-11-27
1
Medium Priority
?
237 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 900 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 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