Article View: borland.public.cppbuilder.nativeapi
Article #17735multiple inheritance and the VCL
From: Paul Anderson
Date: Tue, 04 Mar 2003 16:18
Date: Tue, 04 Mar 2003 16:18
25 lines
2165 bytes
2165 bytes
I would like to make a base class that essentially acts as an interface to all forms in my application. I would like to then create forms which will derive from the base class using the following class declaration: class TFrom1 : public TForm, public BaseClass Borland, however, will not let me compile this. Can someone PLEASE, PLEASE, PLEASE tell me why!!! Any ideas on how I could inbed common functionality into a form so that I can have a clean interface to them. I need to ensure EVERY form will implement a certain function. I don't really care that it is a form, only that we have a contract that the function I need will be implemented and I can call it. I will be storing the base class pointers in a vector<BaseClass> myForms and calling a function something like myForms[x].UpdateState(); Please help if you can!! The reason this is important is because I want IDE independent capabilities. Users will derive from my base class and make their forms and I want to call the UpdateState function and not care about whether it is a Borland TForm or a MSVC++ form. Does anyone know why I can't do multiple inheritance with a Borland form????? THANK YOU SOOOOO MUCH!!!
Technical Details
Message-ID:
<3e64d1be@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,679d8017f814d3b,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-04 13:13:52 PST Reply-To: "Paul Anderson" <paul.anderson@jhuapl.edu> From: "Paul Anderson" <paul.anderson@jhuapl.edu> Newsgroups: borland.public.cppbuilder.nativeapi Subject: multiple inheritance and the VCL Date: Tue, 4 Mar 2003 11:18:06 -0500 Lines: 27 Organization: JHU/APL X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 128.244.21.78 Message-ID: <3e64d1be@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1046794686 128.244.21.78 (4 Mar 2003 08:18:06 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail