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 8801137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:45:30+00:00 2026-06-14T00:45:30+00:00

Coming from a .NET background, now working with Delphi. In .NET, I used to

  • 0

Coming from a .NET background, now working with Delphi. In .NET, I used to have a separate library project with many classes seperated into distinct files. When I compiled this project, I got a single DLL file.

However, I am not able to do that in Delphi. I have many classes, each in their own file with their own unit name (I did not find a way to have multiple files with the same unit name). When I compile my project, I have one DCU file (I believe this is the equivalent of a .NET DLL?) for each unit in my project.

The problem is that I don’t want to have that many files! I would like to have only one DCU file for all of my classes that are in distinct units. Is there a way to achieve what I want to do? How do you deal with these DCUs?

  • 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-14T00:45:31+00:00Added an answer on June 14, 2026 at 12:45 am

    .DCU (Delphi Compiled Unit) files are binary files that are used between compiling source (text) and linking the executable. They’re created by the compiler, joined together in memory, combined with the startup code and put into an actual executable (.EXE/.DLL/.BPL) by the linker.

    .DCU files are not .DLL (Dynamic Link Library) files, although Delphi can combine one or more .dcu file and link to a .DLL.

    The number of .dcu files is meaningless most of the time; it’s the .pas source files you need to be concerned about, and there is one of them for each source unit you create. They’re re-created as needed if the source file is changed, or used in their compiled state if the source isn’t changed for link speed. There is always one .dcu file per .pas file in your uses clause, plus one for your own source being compiled.

    When you install a component into the Component Palette in the IDE, the .dcu is placed in a .BPL (Borland Package Library), which is a special type of DLL; that BPL, or package, file is then loaded as executing code into the IDE. This is how a button is visually displayed on a form at designtime; the code executing in the BPL actually creates a button and allows it to be displayed and manipulated in the Form Editor.

    When you build an executable (and don’t use runtime packages), the DCU file is linked into your application, and once the executable (.EXE) file is created neither the original .pas file or the .dcu is needed any longer. (Until, that is, you need to make changes to the executable, in which case the .pas file is modified, the compiler creates a new .dcu, and the linker combines them to create a new .exe.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about Objective-C today involving NSMutableArray. Coming from a .net/c# background
I'm coming from the .Net MVC background looking to do a project in RoR.
Being a newby in .NET land and coming from a Delphi background, I am
Comming from a C# background I'm now trying to learn Delphi. There are many
I'm coming from ASP.NET background and I have trouble understanding a couple of things
I'm coming from a Rails background and doing some work on a ASP.NET project
Coming from a .NET background I'm use to reusing string variables for storage, so
I'm coming to C++ from a .Net background. Knowing how to use the Standard
I've recently been learning vb.net, coming from a background in java and c. I'm
I'm coming to asp.net MVC 4 from a background in Rails, and I am

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.