Solved

Creating one run-time package only

Posted on 1998-07-01
5
129 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks for the detailed answer. Tom.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now