0
votes

I have many components registered in Delphi 7 that I use in my main project.

When opening a new project, I can add those components, no problem.

When I open an old project using certain of those components, Delphi shows up : "Form1.Mycomponent does not have a corresponding component. Remove the declaration?"

and in the component palette, "Mycomponent" is no longer displayed. Why?

1
My components do not belong to a packageuser382591
It must have been. Otherwise it wouldn't be shown in the components palette.TLama
Put them in a package then. That's the way to install components.David Heffernan
Uh-oh! @DavidHeffernan, that is only half of the answer. Since it came so far as to "Remove the declaration?" it means he alrady had raced behind initial "Class xxxx not found" error and destroyed his form's DFM by choosing to ignore it and removing the components from it and then saving the corrupt DFM. Well, hopefully he can recover old form sources from history or from DVCSArioch 'The
Thanks guys. I have backups and could get an old .dfm file working. I don't understand why "User Borland package" was unchecked. But now, issue is solved thanks to your help !user382591

1 Answers

0
votes

I had a similar problem with the components palette, since their elements were missing.

After searching very much for help, I discovered (in my case: Delphi 7 under Windows 8.1) that it was a problem with the installation process.

During installation, I very often used to choose the TYPICAL option, and it was the cause of the problem. Since I chose CUSTOM and answered every question with a NEXT, the problem was solved.