Solved

Creating one run-time package only

Posted on 1998-07-01
5
136 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

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…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

624 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