Creating Plugins for a VB program

thorin92
07-20-2003, 10:00 AM
Im trying to create a plugins system for my VB application. The plugins will be written as activeX DLLs and put in a directory underneatht the application folder called /plugins/...

I need a way to ensure the DLLs in that dir are designed for my program. So, im thinking of writing a method called ID or somat that returns success if it is an appropriate DLL.

How do i use the activeX DLL without having to register it in regsvr??

How do i attempt to create a variable that is a class within the DLL and know if this failed...also, how to handle the error if the attempt to create the object fails.?

ie, if i try

dim x as new pluginclass

how can i handle this if it fails??,

is there a trusted method for creating plugins using the *.DLL ext for your own VB programs.

plz help tia

Thinker
07-20-2003, 10:20 AM
You can't avoid having to register those DLLs, but the rest is explained
in this tutorial...
http://www.visualbasicforum.com/showthread.php?threadid=26521
A perhaps simpler example can be found here...
http://www.visualbasicforum.com/showthread.php?threadid=26152

thorin92
07-20-2003, 11:13 AM
Exactly what i needed, thanks!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum