Dynamically Load Components From Packages at Run-Time
By Bob Swart, Delphi Pro

As a Delphi developer you know how to put components in packages, but how do you get them out at Run-Time? A Delphi run-time package contains the code for defining and implementing components, so loading it and making applications use it is simple. However, once the package is loaded the tricky part is making its defined components available for use.

In this 10-Minute Solution, learn to write Delphi packages, dynamically load them, and create dynamic component instances, all of which can be the basis for a dynamic plug-in service for your applications.





Once components are put in packages, getting them out can be tricky. How do you dynamically load and use them at Run-Time?



Write Delphi packages, dynamically load them, and create dynamic component instances in a way that can be the basis for a dynamic application plug-in architecture.

  
Next: Anatomy of a Run-Time Package


Introduction Create Run-Time Components
Anatomy of a Run-Time Package Adding Properties and Methods
Load Dynamic Run-Time Packages


Return to Get Help with Delphi Page

Return to Main Get Help Page
 


Find Out More
• The T42Edit and T42Label components are implemented on Bob Swart's Web site in the Tip-of-the-Hat section.

The Delphi Companion: Delphi Component

Delphi Components and Tools Developers and Their Products


TALK BACK
What are your experiences with component use at Run-Time? Do you have a better way to build dynamic application plug-in architectures. Let us know in the database development discussion groups!
 





Sponsored Links