Finding and Calling DLLs or Modules
Hi,
I am wondering whether it is possible for me to have a piece of code in VB which would scan a selected directory and allow the use of all the DLL files in that directory.
My program is basically an archive reader for many different file types. I want to allow people to write plugins for different archive types so my program can interperate them. The working of my program is pretty simple - if the user chooses a archive called myfile.red or something like that, my program will first see if it can understand that file. If not, it will look in the preset plugin directory for a dll called red.dll (ie, the name of the dll is the name of the file archive extension)
Is this possible to achieve? What about the dynamic inclusion of VB modules instead of DLL files? When I access these DLLs, will the DLL be able to access global variables in my VB program?
Thanks guys - I tried searching the forums but I didn't find anything too helpful :(
WATTO
[email protected]
http://www.watto.org