Solved

Creating one run-time package only

Posted on 1998-07-01
5
135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi: ForceDirectory plain function 7 85
Dynamically Created Query 3 80
Delphi: barcode reading on android platform 1 100
Firemonkey how to swip panel with finger tap 1 41
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 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