Article View: borland.public.cppbuilder.upgrade
Article #2445Re: overloading constructors in inherited forms
From: stuart kruse
Date: Mon, 06 Dec 1999 00:00
Date: Mon, 06 Dec 1999 00:00
27 lines
1441 bytes
1441 bytes
Liz, I think the difference may be that my forms are inherited. I too have no problems if I use a simple (non-inherited) form with overloaded constructors. You can re-create the problem with this simplest case: Create an MDI application (one MDI parent form, one 'base' child form, and one other form that inherits from the 'base' child form). Create an overloaded constructor for the inherited child form. Leave the constructor of the base 'child' form empty. Create a button on the main MDI parent form, that creates a new 'inherited' child form at runtime, code something like: TInheritedForm* NewForm = new TInheritedForm(this,MyParameter); Set options so that neither the base child form or the inherited form are automatically created by Builder. You should hit the problem!!! If this isn't enough for you to try, i'll send a sample project as you suggested. Best, Stuart
Technical Details
Message-ID:
<82gqi4$5p512@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<82go8a$5p416@forums.borland.com> <82gpk7$5ph11@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10529a,2b0adff5887013fc X-Google-Attributes: gid10529a,public From: "stuart kruse" <s.a.kruse@open.ac.uk> Subject: Re: overloading constructors in inherited forms Date: 1999/12/06 Message-ID: <82gqi4$5p512@forums.borland.com> X-Deja-AN: 557326018 References: <82go8a$5p416@forums.borland.com> <82gpk7$5ph11@forums.borland.com> Organization: open university X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.cppbuilder.upgrade