Is DLL Loaded?

B

Brian

Hello All,
Is there a way in VBA to tell if a DLL is registered?
I have a custom DLL that needs to be loaded for the database to work.
I want the code to check to see if it is already registered, if not, load it.
Using Shell and regsvr32 works great.

Thanks in advance,

Brian Clark
 
A

Alex Dybenko

You can try to intitate some object in dll, using CreateObject, if you get
an error - then dll is not registered

But still this is not a good idea, all necessary dlls you have to install
and register during setup of your application
 
Top