|
-
Sep 28th, 2000, 02:40 PM
#1
How can I add plug-in capabilities to my app?
I thought about making EXE files, encrypt them, and give them a special suffix (Eg. *.tgh, *.rtt, *.eap...).
But I think that this solution won't work because I need the plug-ins to interact with my app.
Any suggestions?
-
Sep 28th, 2000, 03:19 PM
#2
Anyhting?
-
Sep 28th, 2000, 05:43 PM
#3
One way of doing plug-ins is to define a plugin interface in an ActiveX DLL, and make you program use the LoadLibrary function to search for all avaialble plugins in a specific directory.
At least, that's the basic concept.
Unfortunately, in practice, it's substantiatlly harder. Using the Implements keyword, and a suitable interface component, you can define components that have a generic interface. The problem (at least in my experience), is that it is reasonably difficult to incorporate these plugins in to the system, unless you are doing simple action plugins (like Photoshop filters), which is just load the plugin when the form loads, create a menu item for ite (naming the menu based on querying the plugin interface using a suitably named function), and then calling that function with LoadLibrary.
Hope that at least gave you some ideas. The major key is having a defined interface for the plugin, so that yuou're program knows how to talk to the plugin files.
- gaffa
-
Sep 28th, 2000, 05:52 PM
#4
That's not the problem.
I got advice from Yonatan and he told me I can use DDE.
How do I use it?
-
Sep 29th, 2000, 12:39 AM
#5
DDE is a technology from the stone age. It dates back to Win 3.0. I didn't think people still used it 
On DDE I can't help. Sorry
- gaffa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|