Article View: borland.public.cppbuilder.nativeapi
Article #2763Re: Application->CreateForm
From: Remy Lebeau (TeamB)
Date: Sat, 25 Nov 2006 11:17
Date: Sat, 25 Nov 2006 11:17
31 lines
1858 bytes
1858 bytes
"Dmitry Konnov" <dmitry@weblinedesign.biz> wrote in message news:456814f4@newsgroups.borland.com... > In my memory Delphi allows to do this. No, it doesn't. CreateForm() works exactly the same way in Delphi that it does in C++. > Why Builders not supported that? CreateForm() is internally hard-coded to only use the TComponent* constructor. That has nothing to do with a class's ability to be created with other constructors. You have to call the desired constructor directly for that. In Delphi, you simply call the constructor by name (usually Create()). In C++, you use the 'new' operator instead. > In a while i override this problem just introducing new Method to base Form > class, > Like > void __fastcall Init(...) You are going about it all wrong. > so i must to do for all forms I already showed you in my earlier reply what you should be doing. Gambit
Technical Details
Message-ID:
<45682ab0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45672a82@newsgroups.borland.com> <4567a282$3@newsgroups.borland.com> <456814f4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cc726ca6ac385fd3 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45672a82@newsgroups.borland.com> <4567a282$3@newsgroups.borland.com> <456814f4@newsgroups.borland.com> Subject: Re: Application->CreateForm Date: Sat, 25 Nov 2006 03:17:54 -0800 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <45682ab0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1164454576 69.169.4.232 (25 Nov 2006 03:36:16 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail