Article View: borland.public.cppbuilder.upgrade
Article #2438Re: Old Components, New Builder
From: Jeff Overcash (TeamB)
Date: Tue, 30 Nov 1999 00:00
Date: Tue, 30 Nov 1999 00:00
40 lines
2306 bytes
2306 bytes
Bill wrote:
>
> I have just upgraded to BCB Pro 4 from BCB Pro 1.0. I have run into
> several problems trying to install my favorite old components.
>
> Problem 1) The first occurs while trying to add a single file Pascal
> source. The error "[Pascal Error] Comms.pas(198): Types of actual and
> formal var parameters must be identical." comes up. It looks like the
> new compiler is a little stricter? I have tried changing the Open and
> strict var options under the Pascal compiler options to no avail. Is
> there an easy way to get past this (without dinking with all the old
> pascal files)?
This is usually because D4 (the BCB4's VCL version) introduced a true unsigned
32 bit integer. Most Win API calls are DWORD. In Delphi 3 and earlier an
Integer cound be passed becuase they were the same type. In D4 (and there for
BCB4) a DWORd is not thesame tpye as an Integer. Change the integer
declarations to DWORd and that will usually clear this up.
> Problem 2) The second occurs while trying to add an OBJ file. The error
> [Linker Error] Unresolved external '__fastcall
> Forms::TApplication::MessageBox(char *, char *, unsigned short)'
> referenced from C:\BORLAND\COMPONENTS\DIGITS.OBJ. comes up. MessageBox
> is a valid method for TApplication so why the error
>
If it is a C++ component make sure that it is using hte PACKAGE macro in its
declaration to export the component properly.
> Both of these components worked fine in BCB 1.0.
>
> Thanks for any insight. Bill
--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Your friends will know you better in the first minute you meet than your
acquaintances will know you in a thousand years. (R Bach)
Technical Details
Message-ID:
<38446731.9669AEB8@onramp.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38444B5B.B5452900@Interwrx.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10529a,fcd0a711874ee38a X-Google-Attributes: gid10529a,public From: "Jeff Overcash (TeamB)" <overcash@onramp.net> Subject: Re: Old Components, New Builder Date: 1999/11/30 Message-ID: <38446731.9669AEB8@onramp.net> X-Deja-AN: 555073794 Content-Transfer-Encoding: 7bit References: <38444B5B.B5452900@Interwrx.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: TeamB Mime-Version: 1.0 Newsgroups: borland.public.cppbuilder.upgrade