1
votes

I recently bought a lap-top using Windows 7, and I copied my Delphi folder to it from my old desk-top computer, which uses Windows XP. The folder includes the Delphi 5 Standard program and the programs I have written with it, including all their source files.

I can now edit the units, but I cannot view or edit the forms.
If I call up a unit and press F12 to view its form, nothing happens. If I press F11 to view the Object Inspector, a blank Object Inspector appears. If I press Shift-F12 or click on the "View Form" icon and select a form for viewing, I get a message saying "Error Reading Form" and "Class TImage not found", or "Class TButton not found", or some other class not found, followed (when I press "Cancel") by "Error creating form. Class TImage [etc.] not found".

When I try to run a program from the IDE, I get a series of "Error Reading Form" and "Error Creating Form" messages, or (on one occasion) a message saying "[Fatal Error] FILENAME.DPR[1]. File not found: 'System.pas'" But the compiled programs run perfectly when opened in Explorer. [I cannot find a systems.pas file in either computer, but there is an mmsystem.pas file in Delphi's rtl\win sub-folder. Is that it?]

The units use StdCtrls. I have repeatedly re-compiled and rebuilt the programs, to no avail.

As far as I can see (but I may well be wrong), there is no error in the Environment options listed under "Tools", namely the library path (with the lib, bin, and imports sub-folders), the BPL and DCP output directories (with projects*.bpl in both), and the browsing path (with the source\vcl, ctl\sys, and rtl\win sub-folders). I have tried replacing entries like "$(DELPHI5)\Projects\Bpl" with "c:Program Files (x86)\borland\delphi5\projects*.Bpl, but this made no difference.

Is there a solution (preferably a simple one)?

1
You just copied the folders and did not ex/import the registry keys, ,bpl etc.? Then may installing will be the easiest option.bummi
Maybe this answer can offer some help: stackoverflow.com/a/11028045/800214whosrdaddy
Before installing Delphi 5 be sure to go to to computer properties, to the environment variables and to set your TEMP and TMP variables to some short no-spaces path like "c:\temp" and be sure to give enough access grants to that folder. D5 installer came out before Win2000 and it is wobby on usual today long complex paths to temp storage. You can undo this AFTER installer finished and after you applied all update packs. I also suggest you to install CdeTyphon and start working in it. Delphi 5 was a gem, but too much time went from 1999.Arioch 'The

1 Answers

6
votes

You need to install Delphi using the installation program. It's not enough just to copy the installation folder. There are registry settings too. You may be able to hack together a working solution by transferring registry settings from one machine to another, but the correct solution is to install properly.