DelphiFAQ Home Search:

DsgnIntf.dcu not found (Delphi 2 - 5)

 

comments17 comments. Current rating: 2 stars (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.


Content-type: text/html

Comments:

You are on page 1 of 2, other pages: [1] 2
2006-03-11, 14:18:43
tuba005@hotmail.com from Turkey  
rating
2006-07-13, 05:51:05
anonymous from Norway  
rating
2006-10-07, 08:05:22
anonymous from Finland  
rating
Adding 'ToolsAPI' does not change anything!!

And the second option is too complicated!

Are there any other ways of fixing this shit??
2006-10-07, 08:10:02
Creed@hotmail.com from Finland  
rating
Yeah!

No help at all...
2006-10-07, 08:11:35
anonymous from Finland  
rating
Not help!
2006-10-07, 08:16:03
harlan@gmail.com from Finland  
rating
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
2006-10-07, 09:21:25
anonymous from Finland  
rating
Tryed all with no success???
2006-10-10, 04:04:32
anonymous from Australia  
Replace...

uses <SomeOtherUnit>, DsgnIntf;

with...

uses <SomeOtherUnit>, DesignIntf, DesignEditors, DesignIDE;
2006-10-23, 07:23:26
DarkAxi0m from Australia  
rating
uses <SomeOtherUnit>, DesignIntf, DesignEditors, DesignIDE;
Worked For me in Delphi7
2006-12-17, 14:07:42
anonymous from Poland  
Doesn't work in D7 PE
2007-11-01, 09:57:01
[hidden] from United States  
rating
Changing the uses statement helped, but now it can't find the TComponentEditor. Does anyone know what replaced it in the new DesignIntf?
2007-11-01, 09:57:43
[hidden] from United States  
rating
Changing the uses statement helped, but now it can't find the TComponentEditor. Does anyone know what replaced it in the new DesignIntf?
2008-10-13, 15:19:25
jorge_escobar777@hotmail.com from Bolivia  
rating
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}.
2008-12-04, 05:38:54
anonymous from Argentina  
replace for :
DesignIntf,DesignEditors,

works in delphi 2009
2009-03-31, 10:59:30
Javan_Soft from Iran  
You are on page 1 of 2, other pages: [1] 2

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: