Article View: borland.public.cppbuilder.nativeapi
Article #2764Re: Application->CreateForm
From: Remy Lebeau (TeamB)
Date: Sat, 25 Nov 2006 11:14
Date: Sat, 25 Nov 2006 11:14
27 lines
2060 bytes
2060 bytes
"Dmitry Konnov" <dmitry@weblinedesign.biz> wrote in message news:4568132a@newsgroups.borland.com... > I just put RegisterClass(__classid(TMyForm)) into form constructor > and set form as auto-creatable in project options. So on application > start forms are auto-created and auto-registered. You should only auto-create the MainForm. Use 'new' to programmably create secondary forms when actually needed. That reduces run-time resource usage considerably. > And i noticed that reducing of includes improve compilation time immensly. > That is obvious. Then I take it that you are not using pre-compiled headers? That would also greatly reduce compile times. > If i have more than 60 forms in project with untrivial includes - i > realised that compilation because impossible or goes to eternity. Not true. I have applications that have just as many forms and many more includes in them, and there is no problem with compiling them. Sounds like you have not optimized your project coding properly. Gambit
Technical Details
Message-ID:
<456829d9$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> <45672d88$1@newsgroups.borland.com> <4567333e@newsgroups.borland.com> <4567a4ea@newsgroups.borland.com> <4568132a@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> <45672d88$1@newsgroups.borland.com> <4567333e@newsgroups.borland.com> <4567a4ea@newsgroups.borland.com> <4568132a@newsgroups.borland.com> Subject: Re: Application->CreateForm Date: Sat, 25 Nov 2006 03:14:18 -0800 Lines: 29 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: <456829d9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1164454361 69.169.4.232 (25 Nov 2006 03:32:41 -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