🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2762

Re: Application->CreateForm

#2762
From: Dmitry Konnov
Date: Sat, 25 Nov 2006 09:56
21 lines
1822 bytes
Remy

> You have to use an #include anyway in order to declare and use your form
> variable.  So what do you gain exactly by using Register/FindClass() and
> CreateForm()?  Nothing.

nop.
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.

no need for #include in any place of application.

And i noticed that reducing of includes improve compilation time immensly.
That is obvious.

If i have more than 60 forms in project with untrivial includes - i realised
that compilation because impossible or goes to eternity.

Dmitry
Technical Details
Message-ID: <4568132a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45672a82@newsgroups.borland.com> <45672d88$1@newsgroups.borland.com> <4567333e@newsgroups.borland.com> <4567a4ea@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
Reply-To: "Dmitry Konnov" <dmitry@weblinedesign.biz>
From: "Dmitry Konnov" <dmitry@weblinedesign.biz>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45672a82@newsgroups.borland.com> <45672d88$1@newsgroups.borland.com> <4567333e@newsgroups.borland.com> <4567a4ea@newsgroups.borland.com>
Subject: Re: Application->CreateForm
Date: Sat, 25 Nov 2006 12:56:42 +0300
Lines: 23
Organization: weblinedesign
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 212.58.203.114
Message-ID: <4568132a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1164448554 212.58.203.114 (25 Nov 2006 01:55:54 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail