🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.migration
Article #168

Re: Win 95 to Win XP and from 1st C++ Builder to C++ Builder 5 porting problem.

#168
From: Hans Galema
Date: Mon, 26 Jun 2006 11:36
34 lines
2072 bytes
Sanjay Patel wrote:

> Yes, I am still using FormCreate to create my form. I tried both of your 
> suggestion and unfortunately problem still exist. My main code to create 
> form is as below:

> Application->CreateForm(__classid(TCustInfo), &CustInfo); // <---- This line 
> has problem and I receive error message.

Well that is not your code. That is code generated by the IDE.

I meant that you do not use

void __fastcall TCustInfo::FormCreate(TObject *Sender)
{
  // your initialisationcode
}

but place that initialisationcode in the constructor:

__fastcall TCustInfo::TCustInfo(TComponent* Owner)
   : TForm(Owner)
{
   //initialisation code
}

To debug your project: outcomment all code in the constructor
and see if you still get the error.

By the way: How did you start the bcb5 project? Did you let
it automatically convert the .mak/.prj file ? If so then that was
the wrong way. Start a new project and add all the units manually.

Hans.
Technical Details
Message-ID: <449fc805@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-mail
References: <449de457$1@newsgroups.borland.com> <449e41d6@newsgroups.borland.com> <449f7fe1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,ed557c1baf67d36a
X-Google-Attributes: gid110f51,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 26 Jun 2006 13:36:45 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.migration
Subject: Re: Win 95 to Win XP and from 1st C++ Builder to C++ Builder 5 porting
 problem.
References: <449de457$1@newsgroups.borland.com> <449e41d6@newsgroups.borland.com> <449f7fe1$1@newsgroups.borland.com>
In-Reply-To: <449f7fe1$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <449fc805@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1151322117 145.98.201.248 (26 Jun 2006 04:41:57 -0700)
Lines: 34
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