by Frank (1 Submission)
Category: OLE/COM/DCOM/Active-X
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Shows one way to add Plug-ins to your VB programs. This sample only works with two plugins, but by using a colection or a dynamic array you could use as many as your computer can handle, and you could add a function to the plug-ins that returned the type of plugin it is. (Like image-plug-in,string-plug-in,math-plug-in,...). I am not one for adding comments but the code is not hard to follow! I hope that this help someone! You can do alot more with this then i have here, just wanted to show the basics. I used code from VBC for registry work and others, I left the comments from the owners of that code in place but changed the code to a cutdown version.
(usage:)
Create the two dll's and place them in the plugins directory.
create and run the registor plugins app. this registors the dll's and makes entries in the registry so the test program can find them.
then run the test program.
Upload