My question is quite difficult for perception, but I will try to make it clearer. The project was not created by me, someone else's code.

There is a project DelphiMain.dpr , contains several forms. Each form corresponds to the modules Unit1.dcu, Unit1.dfm, Unit1.pas Unit1.ddp ... Unit9.dcu, Unit9.dfm, Unit9.dfm, Unit9.ddp . Total forms 9. The project contains a custom component DelphiCOM.dsk . This component includes 6 classes: TUCSCOM1 ... TUCSCOM6 . For each component: UCSCOM1.dcu, UCSCOM1.pas ... UCSCOM6.dcu, UCSCOM6.pas . In each of the UCSCOM1 - UCSCOM6 :

 procedure Register; begin RegisterComponents('DelphiMain', [TUCSCOM1]); end; ... procedure Register; begin RegisterComponents('DelphiMain', [TUCSCOM6]); end; 

In the main form Unit1.pas is registered at the beginning

 uses UCSCOM1, UCSCOM2, UCSCOM3, UCSCOM4, UCSCOM5, UCSCOM6; 

But - when trying to open the form Unit1.dfm error:

TUCSCOM6 not detected!

In graphical form, the Unit.dfm form Unit.dfm not open, you can see only the text view ...

All modules are in the same directory, in theory they see each other. The project, along with the components, builds without errors, the executable is built and launched. But when working, a lot of run-time crashes take off, since the main form still does not see TUCSCOM6 , and there are elements of this type in it.

There is such a clue - WHY FOR TUCSCOM6 There is a TUCSCOM6 TUCSCOM6.dsk . Although it is part of the components. There are no files for TUCSCOM1 - TUCSCOM5 dsk !

  • can DelphiCOM.dpk? - Igor
  • one
    Is the package in the IDE loaded? Are the components in the palette present? Is the application compiled with packages? - Igor
  • You did not specify the most important thing - whether these components are installed in the IDE. Files dsk - go to the forest, they are "left". You need either .dpk or install the components one by one, since they all have a register. - kami
  • Google how to install components in Delphi. - kot-da-vinci
  • "can DelphiCOM.dpk" - no, DPK is definitely nowhere. - AVM

0