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)?