If your dll is registered on the system, use CreateObject with its ProgID.
Set myObject = CreateObject("MyReallyCoolObject.HelloWorld") myObject.Print
If your object is not registered in the system, use GetObject with the path to the file containing your object. Make sure your object provides the correct interface. (The second parameter is optional. Here you can specify the class name if your object provides more than one.)
Set myObject = GetObject("C:\some\path\helloworld.dll", "appname.HelloWorld") myObject.Print
Nilpo
source share