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 

Porting Apps from Delphi 6 to Delphi 2007

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Upgrade
View previous topic :: View next topic  
Author Message
Robert
Guest





PostPosted: Fri May 11, 2007 10:42 pm    Post subject: Porting Apps from Delphi 6 to Delphi 2007 Reply with quote



Hi all,

I have not been on this user group in a long time and I see some
familiar names. Nice to see that the love of Delphi goes on.

I have two Delphi 6 applications that I want to port to 32-bit Delphi.
I have a few questions if you can help:

1. Can I just load in the original forms, like load the Delphi 6
project? I know that I will have to find alternatives for many of the
3rd party VCLs I used in the programs. But beyond that, are there
going to be other fundamental changes I have to make?

on an initial copmpile of my old app in D 2007, I get this error
message:

[DCC Error] F2141 Bad file format: 'C:\Program
Files\Borland\Delphi6\Lib\rtl.dcp'

can you tell me what that is about?

2. I am assuming that I need to compile for 32-bit computers on a
32-bit machine. Can the same program I write and compile on my Windows
2000 machine run on Vista 32 and 64 bit and XP? Are there preparations
or any modifications I will need to do for the different environments
the apps will run on?

3. Installing Delphi 32 on my Vista machine, which has a beta version
of Vista on it, yielded and error 2337. Can you tell me what that
error is so that I can complete installation?

4. My apps use the BDE but the actual databases are very simple and
small. Is there a built-in replacement in D2007 that I should consider
using? I have the Pro version. I mention this because I saw some posts
that say that using the BDE really doen't work without problem.

5. Is there any built-in installation making program in D2007 Pro? I
have been using Inno Setup Compiler with great success in the past.

Thanks again for your help,

Robert
Back to top
Liz
Guest





PostPosted: Fri May 11, 2007 11:08 pm    Post subject: Re: Porting Apps from Delphi 6 to Delphi 2007 Reply with quote



Robert wrote:

Quote:
[DCC Error] F2141 Bad file format: 'C:\Program
Files\Borland\Delphi6\Lib\rtl.dcp'

Im guessing you have some old references in the project. Check your
project settings - specifically runtime ones, and paths.


Quote:
2. I am assuming that I need to compile for 32-bit computers on a
32-bit machine. Can the same program I write and compile on my Windows
2000 machine run on Vista 32 and 64 bit and XP? Are there preparations
or any modifications I will need to do for the different environments
the apps will run on?

D2007 doesnt produce 64bit apps - or if it does, I completely missed
that, all the apps should run on a 64bit machine


Quote:
3. Installing Delphi 32 on my Vista machine, which has a beta version
of Vista on it, yielded and error 2337. Can you tell me what that
error is so that I can complete installation?

Im impressed the beta version of vistas not timed out yet, 2337 I
believe is a .net issue, Im gonna stab at a guess of:

because its a beta it doesnt have all the patches it needs and in
trying to install .net2 on vista its run into an issue.


Quote:
5. Is there any built-in installation making program in D2007 Pro? I
have been using Inno Setup Compiler with great success in the past.

Yes, installaware has a version you get (you can download from the
website if you're a registered user)

--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings
Back to top
Peter Below (TeamB)
Guest





PostPosted: Sat May 12, 2007 12:21 am    Post subject: Re: Porting Apps from Delphi 6 to Delphi 2007 Reply with quote



Robert wrote:

Quote:
Hi all,

I have not been on this user group in a long time and I see some
familiar names. Nice to see that the love of Delphi goes on.

I have two Delphi 6 applications that I want to port to 32-bit Delphi.

Delphi 6 *is* a 32-bit environment.

Quote:
I have a few questions if you can help:

1. Can I just load in the original forms, like load the Delphi 6
project?

If you have D2007 replacements for all 3rd-party controls you use in D6
available, or if you have the source for the components you use and can
get them to recompile in D2007. You would need to rebuild the
design-time and run-time packages for the components. Otherwise the
D2007 IDE would report heaps of error when you try to open the project
forms.

Quote:
I know that I will have to find alternatives for many of the
3rd party VCLs I used in the programs. But beyond that, are there
going to be other fundamental changes I have to make?

No, yes, maybe. Depends on what your program does. Codegear/Borland has
always taken pains to make sure older code can be ported without too
much trouble. My old D7 projects all recompiled on first try in BDS
2006, for example, and worked without problems. I use very few
3rd-party components, though. Those are usually bigger trouble since
they do not tend to be as compatible with older versions as the RTL and
VCL itself.
Quote:

on an initial copmpile of my old app in D 2007, I get this error
message:

[DCC Error] F2141 Bad file format: 'C:\Program
Files\Borland\Delphi6\Lib\rtl.dcp'

When you copy the project to a new folder in preparation for migration
copy only the PAS, DPR, DFM, DPK files and any resource files of your
own. Do not copy the DOF and CFG file. You may have to reconfigure some
project options (like the main icon and version information, or the
package list if you build with run-time packages) this way but this
makes sure you do not get harmful baggage, like pathes pointing at your
old D6 library). As the next step open the DPR and DPL files in notepad
and check the Uses or Requires clauses, respectively, for pathes that
refer to your old D6 code base. Change those to point to your new D2007
project folder. Then try to open the DPR or DPK file in D2007 and if
that works call up the project options and set the search path as
appropriate for your new D2007 environment. Make sure you do not use
any pathes that contain D6 compiled code (dcu, dcp), that only leads to
confusion.

Quote:
2. I am assuming that I need to compile for 32-bit computers on a
32-bit machine. Can the same program I write and compile on my Windows
2000 machine run on Vista 32 and 64 bit and XP? Are there preparations
or any modifications I will need to do for the different environments
the apps will run on?

On a Win64 platform your programs will run in WOW32 environment,
basically an emulation of the standard Win32 environment. If you want
to make a Win64 version of the program you will have to wait a bit
longer, D2007 only creates Win32 executables.

Quote:
3. Installing Delphi 32 on my Vista machine, which has a beta version
of Vista on it, yielded and error 2337. Can you tell me what that
error is so that I can complete installation?

Vista is a problematic environment if you come from XP or Win2K. Do not
use a beta, D2007 is not certified to work with that.

Quote:
4. My apps use the BDE but the actual databases are very simple and
small. Is there a built-in replacement in D2007 that I should consider
using? I have the Pro version. I mention this because I saw some posts
that say that using the BDE really doen't work without problem.

That is more a Vista problem than a D2007 problem. You can use
Interbase (I assume d2007 comes with the local interbase edition like
prior versions) if you cannot get the BDE to run (D2007 still supports
it with Paradox and dBase database formats).
Quote:

5. Is there any built-in installation making program in D2007 Pro? I
have been using Inno Setup Compiler with great success in the past.

Don't know, check the feature matrix at
http://www.codegear.com/Products/Delphi/win32 (left side nav bar)


--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
Back to top
Robert
Guest





PostPosted: Sat May 12, 2007 5:03 am    Post subject: Re: Porting Apps from Delphi 6 to Delphi 2007 Reply with quote

Thank you both for your thoughtful and complete replies!

Sincerely,

Robert
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Upgrade 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.