Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8659621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:03:22+00:00 2026-06-12T16:03:22+00:00

My new component (TComponent) uses DsgnIntf since I use custom property editors. The problem

  • 0

My new component (TComponent) uses DsgnIntf since I use custom property editors. The problem is when using the component in a custom VCL application – DSGNINTF.DCU not found! One solution is to add a command line switch to a compiler (dont remember any more what is it), but I don’t like that solution. The second solution is a unit segregation. I found this:

http://edn.embarcadero.com/article/27717

The problem is – I don’t understand this article so well.. I don’t know what exactly I need to do in my component unit to separate design-time from runtime code. Could someone please make the simplest example and explain it? I just want to avoid problems with “dsgnintf.dcu not found” when people using my component. Thank you.

EDIT:
I looked the article a bit more and I realize the second unit registers the first one. To avoid dsgnintf.dcu problem I presume the second unit must be in it’s own .pas file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:03:23+00:00Added an answer on June 12, 2026 at 4:03 pm

    Usually you create a single unit to register your package in IDE, something like that:

    unit RegPackage;
    
    interface
    
    uses
      Classes, MyUnit;
    
    procedure Register;
    
    implementation
    
    procedure Register;
    begin
      RegisterComponents('MyPage', [TMyComponent]);
    end;
    
    end.
    

    and include this unit into design-only package:

    package MyPackD;
    
    {$R *.res}
    ..
    
    requires
      rtl, MyPackR; // your runtime package
    
    contains
      RegPackage in 'RegPackage.pas';
    
    end.
    

    The article you link covers also property editors. All package code not related to IDE should be contained in run-only package:

    package MyPackR;
    
    {$R *.res}
    ..
    
    requires
      rtl,
      vcl;
    
    contains
      MyUnit in 'MyUnit.pas';
    
    end.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi when I add a new component using Actionscript I want it to fade
I am creating a new SDK component (application) based on the sample device located
I'm fairly new to Android, and am trying to build a custom component in
I am creating C# application that uses OCX component. I have this component from
I am developping an Android application that uses a Facebook component. It would be
I'm attempting to do something using Silex (which uses the Symfony routing component -
I'm trying to move my app to the new Emberjs Router component that uses
How can I create a new project that only uses the Symfony2 Console component?
I am starting development on a new web application which uses JSF 2 as
I have a C# application which uses a COM component. This COM component require

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.