Solved

How to create plug-ins for my application

Posted on 2003-11-28
12
528 Views
Last Modified: 2013-11-18
I am new to delphi programming, i have worked on Add-ins on microsoft products but none on plug-ins.

now i have a product to be built which would allow plug-ing to access different database...

i have the following query on the same

1. how to built the plug-in. ie use the dll, package or com based.
2. how the application identifies the plug-in.
3. how to accecc data of the application

/regards
M. Shanil Kumar
0
Comment
Question by:sanjay_shanil
  • 4
  • 2
  • 2
  • +2
12 Comments
 
LVL 11

Accepted Solution

by:
shaneholmes earned 50 total points
ID: 9842024
There are a number of free articles on the internet which will walk you through the basics of plugins for delphi - ottomh - http://www.undu.com/Articles/990817e.html. I believe Delphi Informant (www.delphizine) has done a few articles asw ell on this subject.

However, I would recommend that you visit www.uil.net and take a look at their
Plugin Framework (The UIL Plugin Framework). It is not free, but i believe, its the best one available commercially.

Hope this helps!

Shane




0
 
LVL 2

Assisted Solution

by:sreenu_v78
sreenu_v78 earned 50 total points
ID: 9842099
0
 
LVL 1

Assisted Solution

by:mgazza
mgazza earned 50 total points
ID: 9842163
are you calling the dll from a none delphi coded program or....... ????????

example of a dll in delphi

this a lanuage plug in a made as a test for my apps (just the bare bones)

library language;

        function messages(Msg,Lang:word):pchar;
        begin     result:='';
          case lang of                        //12345\\
          $0001:begin   //english
                        case msg of
                                $0001:result:='';
                                $0002:result:='' ;
                                $0003:result:=''  ;
                                $0004:result:=''   ;
                                $0005:result:=''    ;

                        end; //case msg of
                end;    //english
          $0002:begin   //dutch
                        case msg of
                                $0001:result:='';
                                $0002:result:='' ;
                                $0003:result:=''  ;
                                $0004:result:=''   ;
                                $0005:result:=''    ;
                        end; //case msg of
                end;
          $0003:begin

                end;

          end; //case language of
        end;

         exports messages index 1;

begin
end.
  and the in the the delphi program u just call this by adding the funxtion some where before the implementation

function messages(Msg,Lang:word):pchar; external 'language.dll';
           now just call this function from your app and get the responce (only ever pass small anouts of data to a dll pchars or small strings.
0
 

Author Comment

by:sanjay_shanil
ID: 9848048
the application goes this way

the product would be sold to different client and the third perty would develop the plug-ins for the product which would add a few forms to the application.

now i would like to know how to allow the application to embbed those forms to the apploication, and how abt the security aspect

/regards

M. Shanil Kumar
0
 
LVL 5

Assisted Solution

by:DeerBear
DeerBear earned 50 total points
ID: 9849551
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:sanjay_shanil
ID: 10548110
i still am not sure how to work around it

/Regards
M. Shanil Kumar
0
 

Author Comment

by:sanjay_shanil
ID: 10548137
Or let me be specific,

i have a form with tab control  which contains 2 individual interface. my application should allow third party vendor to create plugin for my application which would allow the plugin to replace any of the tab interfece of the 2 available.

if someone has some documents related to my requirement plz let me know.

M. Shanil Kumar
0
 
LVL 1

Expert Comment

by:mgazza
ID: 10551043
look at write process memory
0
 
LVL 11

Expert Comment

by:shaneholmes
ID: 10551114
Maybe more info is required on exactly what you want to do.

Cause if you just want to be able to modify a tabcontrol (pagecontrol) - by adding new pages and features, replacing older ones, then the information has been provided here - many articles on creating a simple plugin system see all the links above.

If your seeking something morre complex then you should help us understand more exactly wehat you want.

Shane
0
 

Author Comment

by:sanjay_shanil
ID: 10558144
my application has around 35-40 interface/screens forced in to 1 single Tform. Each interface is placed on a different tab page.

The application should allow third party do develop there own interface and replace the existing interface.

Incase other information is required please revert

/Regards
Shanil
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Send message from delphi to whatsapp, is it possible? 3 1,178
How to call a form that is in a DLL  from an application? 13 65
Specific format 21 182
Performance of SQL statement 37 100
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

896 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

15 Experts available now in Live!

Get 1:1 Help Now