Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 12th, 2005, 7:52 PM   #1
CaptainChaNinja
Newbie
 
CaptainChaNinja's Avatar
 
Join Date: Aug 2005
Posts: 4
Rep Power: 0 CaptainChaNinja is on a distinguished road
Question Converting to a previous version of Delphi

I've done a program in Delphi 7, unfortunately I need to be able to open and edit the code and run the program in Delphi 4. Everytime I try to do that I get errors. How can I possibly save a program in Delphi 7 and open it in Delphi 4?

Thanks
CaptainChaNinja is offline   Reply With Quote
Old Aug 12th, 2005, 11:00 PM   #2
Lockick
Newbie
 
Join Date: Aug 2005
Posts: 7
Rep Power: 0 Lockick is on a distinguished road
I'm not a delphi expert, but in my experience making something reverse compatible after the fact is not possible without rewriting it. For the same reason ps2 games don't work on a ps1.
Lockick is offline   Reply With Quote
Old Aug 13th, 2005, 7:38 PM   #3
CaptainChaNinja
Newbie
 
CaptainChaNinja's Avatar
 
Join Date: Aug 2005
Posts: 4
Rep Power: 0 CaptainChaNinja is on a distinguished road
Angry

I know that reverse compatibility is normally impossible. But I am pretty sure that I have seen people do it with little effort. I just can't find anyone who knows how to do it... :mad:
CaptainChaNinja is offline   Reply With Quote
Old Aug 13th, 2005, 9:12 PM   #4
OpenLoop
Expert Programmer
 
OpenLoop's Avatar
 
Join Date: May 2005
Location: East Lansing, MI
Posts: 663
Rep Power: 4 OpenLoop is on a distinguished road
Quote:
Originally Posted by CaptainChaNinja
I know that reverse compatibility is normally impossible.
It's really the language designer choice wether to make it backward compatible or not. Usually, a big part of a language stays the same but the "new features" is what makes a program incompatible with older versions.
this might not help but this guy has delphi 4 to 3 converter:
http://www.drbob42.com/tools/convert3.htm
OpenLoop is offline   Reply With Quote
Old Aug 22nd, 2005, 7:08 PM   #5
Scorpions4ever
Programmer
 
Join Date: Jun 2005
Posts: 86
Rep Power: 4 Scorpions4ever is on a distinguished road
It's very hard actually. Reason is because a lot of components have extra properties and such. Especially between Delphi 7 and Delphi 6. Delphi 5 and Delphi 4 components had similar properties, but Delphi 4 was a radical step up from Delphi 3 and IIRC the dfm file format even changed a bit between a couple of versions.

If you do open a Delphi 7 project in Delphi 4, the editor is probably going to complain that such-and-such property does not exist. You could tell it to ignore the error and delete all references to the property from the DFM file. If you're lucky, the non-existant properties aren't referenced in your code and it may compile (though the forms may look funny). If you're unlucky, then you need to fix the code to compile it on Delphi 4.
Scorpions4ever is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:49 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC