DelphiFAQ Home Search:

DsgnIntf.dcu not found (Delphi 2 - 5)

 

comments29 comments. Current rating: 3 stars (23 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:

You are on page 2 of 2, other pages: 1 [2]
2010-02-16, 17:55:51
jazter from Mexico  
Works for me in D2010
2012-12-12, 05:12:55
anonymous from Spain  
Link from Javan_Soft run OK in D2009 but if you want read short solution that is:

Project / View Source
Add designide to statement requires

Unit where you call RegisterPropertyEditor add DesignIntf,DesignEditors to statement uses

2020-07-02, 02:30:49
Lionel  
rating
clomid 50mg for men
2020-07-02, 10:01:28
Andy from United States  
rating
clomiphene citrate 50 mg coupon
2020-07-03, 05:31:30
Shannon from Ukraine  
rating
amoxicillin 500 mg cost walgreens
2020-07-07, 15:19:18
Garrett from Uzbekistan  
rating
generic ed pills online from india
2020-07-16, 15:25:43
Jannie  
rating
buy viagra online
2020-07-17, 22:04:50
Barney from Germany  
rating
how long does cialis last
2020-07-19, 13:11:38
Jasmine  
rating
erectile dysfunction cialis medicines
2020-07-23, 22:23:51
Ebony  
rating
purchase viagra without a prescription
2020-07-27, 04:08:07
Shelli from United Kingdom  
rating
naltrexone 50 mg tablet cost
2020-07-30, 18:00:54
Franchesca from Frankfurt Am Main, Germany  
rating
when will cialis be available in generic
2020-08-04, 08:15:08
Lesli  
rating
hydroxychloroquine in india
2020-08-04, 17:59:32
Hildred from Ukraine  
rating
price for hydroxychloroquine
You are on page 2 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: