Borland vcl inheritance problem

Posted on 1999-07-02
Medium Priority
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 ?
Question by:alcindor
  • 2

Author Comment

ID: 1402029
Edited text of question.
LVL 14

Accepted Solution

AlexVirochovsky earned 200 total points
ID: 1402030
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!


Author Comment

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.

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.

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.

Join & Write a Comment

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
Suggested Courses

624 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