Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
DsgnIntf.dcu not found (Delphi 2 - 5)
15 comments. Current rating: (11 votes). Leave comments and/ or rate it.
Question:
My component uses the toolsapi unit DsgnIntf and when I compile an application that uses this component, I get an error message ?DsgnIntf.dcu not found?.
Answer:
You have to modify the design of your component. If it is not your own component, and you do not have source / time to modify it, then you can help yourself by adding \Delphi\Source\ToolsAPI to the library search path.
The better way ? which Borland expects component developers to choose ? is the following:
In your component separate out the design-time code into a separate unit. At the bare minimum, this will be the code that actually registers the component on the palette, but would also include any other design-time stuff such as property or component editors.
You then need to make a run-time only package that contains what is left after taking out the design time stuff. Compile this first and this will produce a .DCP file A good tip here is to set Delphi to direct all DCP and BPL files to one folder.
Then you can make the design-time package. This will refer to the run-time code by having the DCP that you have just made in the Requires section and will have the design-time unit that you made earlier in the Contains section. Compile and Install this package, and hopefully your Component will appear on the palette.
Once you have successfully done this, you should be able to compile any application that uses your component without the DSGNINTF.DCU message appearing. This is because your app will only have the reference to MyComponent.pas.
For further information, please also look at Steve Trefethen's WebSite.
Download his free Compiler Message Helper.
Comments:
|
tuba005@hotmail.com from Turkey
|
 |
|
|
|
|
anonymous from Norway
|
 |
|
|
|
|
anonymous from Finland
|
 |
|
|
Adding 'ToolsAPI' does not change anything!!
And the second option is too complicated!
Are there any other ways of fixing this shit??
|
|
Creed@hotmail.com from Finland
|
 |
|
|
Yeah!
No help at all...
|
|
anonymous from Finland
|
 |
|
|
Not help!
|
|
harlan@gmail.com from Finland
|
 |
|
|
There are no such things called DsgnIntf.dcu in Delphi2006 TOOLSAPI???
I have got 2 components both for delphi7 and I can not install because of this?
This artical offer no help
|
|
anonymous from Finland
|
 |
|
|
Tryed all with no success???
|
|
anonymous from Australia
|
|
|
|
Replace...
uses <SomeOtherUnit>, DsgnIntf;
with...
uses <SomeOtherUnit>, DesignIntf, DesignEditors, DesignIDE;
|
|
DarkAxi0m from Australia
|
 |
|
|
uses <SomeOtherUnit>, DesignIntf, DesignEditors, DesignIDE;
Worked For me in Delphi7
|
|
anonymous from Poland
|
|
|
|
Doesn't work in D7 PE
|
|
[hidden] from United States
|
 |
|
|
Changing the uses statement helped, but now it can't find the TComponentEditor. Does anyone know what replaced it in the new DesignIntf?
|
|
[hidden] from United States
|
 |
|
|
Changing the uses statement helped, but now it can't find the TComponentEditor. Does anyone know what replaced it in the new DesignIntf?
|
|
jorge_escobar777@hotmail.com from Bolivia
|
 |
|
|
Well the dcu you are trying to use is or no longer available is for previous delphi's versions so instead of DsgnIntf try using DesignIntf, {DesignEditors}.
|
|
anonymous from Argentina
|
|
|
|
replace for :
DesignIntf,DesignEditors,
works in delphi 2009
|
|
Javan_Soft from Iran
|
|
|
|
|
|