You may have come across this error:
Microsoft VBScript runtime error '800a0030' Error in loading DLL |
If you are creating or using a Visual Basic 5.0 ActiveX DLL that returns a collection, see
KB #178777. If you are creating or using a Visual basic 5.0 or 6.0 ActiveX DLL that returns a user-defined type (UDT), see
KB #224397.
If you get this error when instantiating an ADODB.Connection or other built-in data component, re-install the latest refresh of MDAC (from
MDAC Download Page).
If you get this error when using CDO.Message, you can probably work around it by updating to the latest service pack / hotfix for your operating system. If you are already at the most recent hotfix, you might try (re-)installing the latest scripting engine (which should reinstate a properly registered DLL).
See
Article #2151 for links to service packs, scripting engines and other downloads.