Delphi-Kylix
  Home arrow Delphi-Kylix arrow Creating an About Box Plug-in
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

Creating an About Box Plug-in
By: Leidago
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-11-20

    Table of Contents:
  • Creating an About Box Plug-in
  • Continuing with our example
  • Creating a package
  • Adding some more code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating an About Box Plug-in


    (Page 1 of 4 )

    In the previous article we saw how to call a routine from a package as well as how to dynamically load a package into the main application. In this second part of a two-part article explaining plug-ins, we are going to look at how to create a real world plug-in.

    Our plug-in will involve creating an about box for our host application. It is a fairly simple example, but is useful for those of you who would want to show the current version of your application or whatever else you think would work with it. Before we build this example, let's summarize what we've covered so far.

    So far we've covered the creation and use of packages, as well as their components. Then we discussed how to use the routines stored in a package from the main application.

    We have not talked about the differences between packages and DLL files, so let's do a quick comparison. This might help you when deciding which method to use when creating a plug-in.

    Packages:

    • Packages are specific to Delphi i.e they only work with applications that are written in Delphi.
    • Packages enable you to store Delphi classes, forms and more importantly, components.
    • Because of dynamic linking, packages can save you memory, because only one copy of the VCL is loaded into memory. This makes it available to all Delphi applications that use run-time packages. Imagine that every single Delphi application on your computer had to load VCL in memory -- it would take a lot of memory!
    • Packages are version specific, i.e you cannot use a package that you created in Delphi 6 with an application that you built with Delphi 7.

    DLL

    • DLLs enable you to store procedures and functions, as well as entire Delphi forms, but they cannot store Delphi components.
    •   DLLs can be used by any application whether they are written in Delphi or not, unlike packages which are specific to Delphi applications.
    •  When updating a DLL, you simply change your routines (or whatever), recompile the DLL and ship it off; all the applications that were using this DLL will still be able to use it. You cannot do this with packages without changing the executable, as they are version specific. So if you want to ship a new version of a package, you will have to change the executable using it as well. It would be an absolute pain if your package is used by several applications!

    So now you have a better idea of how the two methods compare. The next step is for you to experiment with the two technologies to make your applications truly extensible.

    More Delphi-Kylix Articles
    More By Leidago


       · This article explains how to use packages to built a plugin.
     

    DELPHI-KYLIX ARTICLES

    - Loading an XML Document into the DOM
    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    Stay green...Green IT