Solved

Installing components??

Posted on 2000-05-01
5
242 Views
Last Modified: 2010-04-04
Hello!

I am new in Delphi and so I have problems with installing components!
If the component is a dpk or a pas, it does work!
But if the component without a source and I have only have a DCP-File, how to install this component???
If i make "Components","Install Component" and make "in new package" and chosse then the DPR-file and the new dpk-file and click on "install" then is coming a message "Lines too long...."?!! Whats this?? Is this a Delphi bug??

Robert
0
Comment
Question by:rowisoft
5 Comments
 
LVL 3

Expert Comment

by:sburck
ID: 2765424
For a DCP file, you don't do "Install component", as it is not a component, but "Install packages...", farther down on the "Components" menu.  There you press the "Add" button, select your DCP file, and follow the instructions.
0
 
LVL 3

Expert Comment

by:Mathias
ID: 2765536
The lines are too long, because these files are binary files. If you have a ".DPK" file then you can install it by choosing "Install packages" form the "Components" menu.
0
 
LVL 1

Author Comment

by:rowisoft
ID: 2765541
Sorry!!

I mean *.DCU Files!! And THAT dont go!!
And there are no packages

Robert
0
 
LVL 1

Accepted Solution

by:
mscatena earned 25 total points
ID: 2765859
The DCP file has only symbolic information. If it’s the only thing you have, then you don’t have the component at all.

To install a component you need two copies of the component available for Delphi:

-One copy as a .DCU (or .PAS) file that will be linked with your executable. There may actually be many units.
-One copy inside a package that will be used by the Delphi environment. This copy may have been supplied by the component manufacturer as a .BPL file. It can also be made during installation by compiling a .DPK file into a .BPL. To be installable in the Delphi environment, there must be a “Register” procedure in the “main” unit inside the package.

If you do have a bunch of DCU files, you must know (or discover) which one of them contains the “Register” procedure. This is the one unit you must install. You may try each one in turn until it works. It usually has “reg” in its name and is supplied in source (.PAS) format.
0
 
LVL 4

Expert Comment

by:mhervais
ID: 2765986
you must not be mistaking between the

DPC files and the DCP files

the DPC files can be installed because they are package collections.

the DCP files can't

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 268
Delphi component that can load a DLL in design time? 8 63
control image tags in a string ? 12 130
Delphi: making a BW image transparent 10 38
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question