Huseyints Antwort war auf das Geld, aber ich wollte etwas hinzufügen. Hier einige Beispiel-Code, den ich für dieses sehr Problem verwendet, vielleicht kann es Ihnen entlang beschleunigen ...
// bind a variabe to WScript.Shell
Set WshShell = CreateObject("WScript.Shell")
// define the path to the regasm.exe file
RegAsmPath = "c:\Windows\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe"
// register the dll
WshShell.run "cmd /c " & RegAsmPath & " c:\temp\cbsecurity.dll /codebase /nologo /s", 0, True
// bind a variable to the dll
Set cbUtil = CreateObject("CBSecurity.Utilities")
ich aufgenommen hatte eine IsAlive-Methode in der dll ...
Public Function IsAlive() As Boolean
Return True
End Function
... und könnte prüfen, ob sie registriert die Syntax richtig mit:
//check if dll is available to your code
msgbox "cbUtil is alive: " & cbUtil.IsAlive
Hope this jemand hilft ...
Wie UNREGISTER Sie, wenn Sie es tun? –
regasm your.dll/Registrierung – huseyint