How to get a list of units in the Delphi Compiled Package (.dcp file)

Is there a way to indicate which units / classes are in the Delphi compiled package?

+4
source share
4 answers

You can create a new package, add your .dcp to its require clause, add a new block to it and use code completion in the uses clause - it will show you all available units in all necessary packages. If your .dcp is the only package required and you set it to display sorted by volume (right-click in the drop-down list), then the units from your .dcp should be on top.

I am not sure if this already works in Delphi 7. It works in Delphi 2007.

+2
source

Have you looked at the TDUMP utility shipped with Delphi 7? Bpl is just a fancy DLL, so you can list the exported functions:

eg.

"C: \ Program Files \ Borland \ Delphi7 \ Bin \ TDUMP.EXE" AFWRTL_RD7.bpl

Turbo Dump Version 5.0.16.12 Copyright (c) 1988, 2000 Inprise Corporation

Display of File AFWRTL_RD7.BPL 

.,.

Export from AFWRTL_RD7.bpl

91 exported name (s), 91 export address (s). The source base is 1.

...

 000046B4 31 000A __fastcall Fgint::Base2StringToFGInt(System::AnsiString, Fgint::TFGInt&) 

...

If you look at the exported functions, the function name appears to have a device name prefix or a dependent package, for example. Fgint :: Base2StringToFGInt is the Base2StringToFGInt function in the Fgint.pas module.

Alternatively, consider the depend.exe utility that comes with the Windows Resource Kit. This provides a graphical interface for viewing the contents of a DLL (or BPL).

Cm

http://www.microsoft.com/downloads/details.aspx?FamilyID=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en

for more details.

Vince

+3
source

Besides the developer’s request or reading the documentation, the answer is No.

0
source

JCL "expert use" can show a lot in the IDE.

0
source

All Articles