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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top