Article View: borland.public.cppbuilder.migration
Article #85Re: BCB3 to BCB6
From: Remy Lebeau (TeamB)
Date: Fri, 18 Mar 2005 18:45
Date: Fri, 18 Mar 2005 18:45
15 lines
1536 bytes
1536 bytes
"Mike Heneghan" <heneghan@astound.net> wrote in message news:423b16a6$1@newsgroups.borland.com... > All of the code in the constructor is skipped and the > program jumps to the FormCreate method. NEVER NEVER NEVER use the OnCreate event to begin with! For exactly the reason you have seen - the OnCreate event can be triggered BEFORE the constructor, which is illegal in C++. Put all of your code in the actual constructor instead. Also, stay away from the OnDestroy event, as it can be triggered after the destructor, which is also illegal in C++. Gambit
Technical Details
Message-ID:
<423b21ae@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<423b16a6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,a4023df430439f8b X-Google-Attributes: gid110f51,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.migration References: <423b16a6$1@newsgroups.borland.com> Subject: Re: BCB3 to BCB6 Date: Fri, 18 Mar 2005 10:45:50 -0800 Lines: 17 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: 68.69.17.41 Message-ID: <423b21ae@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111171502 68.69.17.41 (18 Mar 2005 10:45:02 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail