I have a dll that contains a simple function of "Hello world". I am able to call this dll in my visual basic project. How can I import and use the same dll in vb script.
I suspect that any properly registered DLL would be available for use. There are various librarries that you can use in VBScript, and I can only guess these are available because they are standard (registered) in the OS.
To register a .NET assembly you need to use the Assembly Registration Tool (Regasm.exe).
You may want to look into the compile configurations for the assembly as well...I think you have to configure the application (in the Compile Options) so that the assembly can be "Registered for COM interop".
Comment