VBScript with VB.Net

  • Thread starter Thread starter Serban
  • Start date Start date
S

Serban

Hello

I have a question regarding VBScript. I am trying to call
a project/class from a VBScript program.

In the VB6 the following VBScript code was working fine:

Dim testMyDll
Set testMyDll = WScript.CreateObject("MyProject.Class1")
call testMyDll.TestMethod
Set testMyDll=nothing

....where MyProject was a DLL in the Windows Registry.

How this will work with .Net?

Thank you

Serban
 
you will have to expose your .NET class(es) as COM objects as well. and then
everything will work with VBScript.
 
Back
Top