BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Version compatibility

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Pablo
Guest





PostPosted: Wed Feb 18, 2004 9:58 pm    Post subject: Version compatibility Reply with quote



Hi there, I have a code for Delphi 1 and I'd like to know if I can use
it in Delphi 7. What could be the problems (if there are some)?
Thanks.
Back to top
Duncan Murdoch
Guest





PostPosted: Wed Feb 18, 2004 10:13 pm    Post subject: Re: Version compatibility Reply with quote



On 18 Feb 2004 13:58:34 -0800, [email]portiz (AT) hal (DOT) famaf.unc.edu.ar[/email] (Pablo)
wrote:

Quote:
Hi there, I have a code for Delphi 1 and I'd like to know if I can use
it in Delphi 7. What could be the problems (if there are some)?

D7 is very different from D1. You may have lots of trouble:

- D7 is a 32 bit compiler, D1 is a 16 bit compiler.
- The VCL has changed a lot.
- Compiled units are completely incompatible between versions.

On the other hand, if it's a simple program that doesn't do much, it
might just compile.

Duncan Murdoch

Back to top
J French
Guest





PostPosted: Thu Feb 19, 2004 10:08 am    Post subject: Re: Version compatibility Reply with quote



On 18 Feb 2004 13:58:34 -0800, [email]portiz (AT) hal (DOT) famaf.unc.edu.ar[/email] (Pablo)
wrote:

Quote:
Hi there, I have a code for Delphi 1 and I'd like to know if I can use
it in Delphi 7. What could be the problems (if there are some)?
Thanks.

In D1 an Integer was 16 bits - now it is 32 bits

In D1 Strings were 255 bytes long plus S[0] that contained their
length - now they are radically different

Record alignment is different

Any D1 components for which you do not have the source (or a D7
replacement) will just not work

Realistically you should make a copy of the project and try it
- first in one go (you might get lucky)
- and if that fails, build the project from the bottom up

Back to top
Catherine Rees Lay
Guest





PostPosted: Fri Feb 20, 2004 10:53 am    Post subject: Re: Version compatibility Reply with quote

In article <403489e0.162561141 (AT) news (DOT) btclick.com>, J French
<erewhon (AT) nowhere (DOT) com> writes
Quote:
On 18 Feb 2004 13:58:34 -0800, [email]portiz (AT) hal (DOT) famaf.unc.edu.ar[/email] (Pablo)
wrote:

Hi there, I have a code for Delphi 1 and I'd like to know if I can use
it in Delphi 7. What could be the problems (if there are some)?
Thanks.

In D1 an Integer was 16 bits - now it is 32 bits

In D1 Strings were 255 bytes long plus S[0] that contained their
length - now they are radically different

Record alignment is different

Any D1 components for which you do not have the source (or a D7
replacement) will just not work

Realistically you should make a copy of the project and try it
- first in one go (you might get lucky)
- and if that fails, build the project from the bottom up

Agreed. Just to add, if the compiler howls because you made assumptions
about the structure of strings (setting the length with S[0] for
example) you can use ShortString for backward compatibility.

HTH,

Catherine.
--
Catherine Rees Lay
To email me, use my first name in front of the "at".

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.