Solved

Creating one run-time package only

Posted on 1998-07-01
5
133 Views
Last Modified: 2010-04-04
I have 'packaged' a large class of ours in a package as I want it to be available to another of our Delphi programs (and also to another company who will be interfacing with it in Delphi also). When I check on build run time packages and enter only mine in the editbox a number of other packages are also created (vcl30, tor216_r (orpheus)...). I don't want that to happen, I just want my exe and the one package - is there any way to achieve this? BTW, in relation to packages, what are dcp and dcr files? Thanks, Tom.
0
Comment
Question by:tomcorcoran
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:rickpet
ID: 1356804
Tom...

There's a required tab in your *.dpk...remove the packages that you don't want...remember...if you reference these packages(units) in your package you will be required to create them.

Now on to your other question...the *.dcp is the runtime equivelant of your package...this can be the source of much pain.  There seems to be a bug in Delphi 3...it does not always(seldom if ever on our end) of recompiling these...This will cause your source code and package to be out of synch.  We delete these on a regular basis when we are recompiling our package.  The dcr is a palette bitmap (.DCR) file in other words...a resource file...

Rick
      
0
 

Author Comment

by:tomcorcoran
ID: 1356805
RickPet, Thanks,when I was compiling the package it did look for those other packages, I guess there is no way I can just give the search path so my package can units that will be included in the exe, obviously not it must be self contained... can it not just build with the necessary packages (vcl30...) 'packaged' in the package? Send answer so I can grade. Thanks, Tom.
0
 
LVL 1

Expert Comment

by:Greedy
ID: 1356806
RickPet: do you know if run time packages can be put into something like a cab file for depolyment.  I know you can bundle up ocx files like that for web deployment but when I saw this question I started looking to see if you can do it with dpl/dcp files too but can't find any info.
0
 
LVL 3

Accepted Solution

by:
rickpet earned 50 total points
ID: 1356807
Tom...

They can be self contained...but remember there is always a but...=)  as soon as one unit references another unit that must be in a package...So no you can't really have a self contained package...

Okay...how to get around this...Don't package your project.  Break this into groups.  I.E. each component or group of components become a package.  Now the downside to this...they are basically only available to your other programmers...and not as packages to your application.

The reason to use packages...you have an application that will share common points.  The packages that you are going to share need to be very very stable.  Should this change drastically you should wait to start sending it as packages...The reason...lets say we have your package called MyPack10...Now lets say you have 2 applications that use MyPack10.  MyApp1 ver 1.0  and MyApp2 ver 1.2 which link to this package.  Now your user gets MyApp1 ver 1.1 which drastically changes MyPack10.  MyApp2 now is broken as the links are changed...So if you drastically change MyPack10 you should change the name to something like MyPack11 so that you don't break MyApp2.  (Note the VCL does the same thing...VCL30 so that when Delphi 4 comes out it doesn't break existing application)


On to Greedy's question...I don't see why we can't deploy them in a cab...the only problem...since the shell has no inherint(hmmm...but it does have knowledge of *.cab...hmmm) knowledge of our dpl/dcp it will not know where to extract them to...Now I'm sure that we could tie into the shell and have it do this for us...But that's another problem...(Boy do I hate working with the shell...terribly documented...)

Rick
0
 

Author Comment

by:tomcorcoran
ID: 1356808
Thanks for the detailed answer. Tom.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple Delphi Question 9 95
tidtcpserver connection lost handle 2 100
Installshield for Embarcadero EX 10.1 Berlin 4 60
Tidtcpserver listening on multiports? 1 35
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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

789 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