Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to create plug-ins for my application

Posted on 2003-11-28
12
Medium Priority
?
533 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
[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
  • 4
  • 2
  • 2
  • +2
12 Comments
 
LVL 11

Accepted Solution

by:
shaneholmes earned 200 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 200 total points
ID: 9842099
0
 
LVL 1

Assisted Solution

by:mgazza
mgazza earned 200 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 200 total points
ID: 9849551
0
 

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

730 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