Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Borland vcl inheritance problem

Posted on 1999-07-02
3
Medium Priority
?
368 Views
Last Modified: 2013-12-03
I want to have an IDE managed form TForm1, inherit a class of my own in addition to the vcl base class TForm. Something along the lines :-

class TForm1 : public TForm, public TSomeClassOfMine
{
...... whatever
};

Unfortunately, Borland C++ Builder ( I'm using version 4 ) doesn't allow this ! I have been advised ( on a Compuserve forum ) that this is because Borland vcl doesn't support multiple inheritance, is this true. I have a workaround but this isn't the same as inheritance which is the proper soluton for my application. Is there any way of coaxing BCB to achieve the required result ?
0
Comment
Question by:alcindor
[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
  • 2
3 Comments
 
LVL 2

Author Comment

by:alcindor
ID: 1402029
Edited text of question.
0
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 200 total points
ID: 1402030
Hai,
1. you (or in CompuServe) are right,
 BCB  does'n support multiinheritance (but BC++ can support) : you can use only workabout way.
2. But Workabout way is very simple:
  class TForm1 : public TForm
{
  //and you simple rewrite all metods and variables
  //from you TSomeClassOfMine!

}
0
 
LVL 2

Author Comment

by:alcindor
ID: 1402031
This confirms my stated beliefs , apart from that no new insight is provided as I already have a workaround that ammounts to Alex's suggestion. Bearing this in mind, I have downgraded the points to 50.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

705 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