Link to home
Start Free TrialLog in
Avatar of Maggs065
Maggs065

asked on

Execute VB.Net dll from vbscript

Hi,
I am converting a .dll project from VB to VB.Net. Historically this dll was initiated using a vbscript:
option explicit
    On error resume next      
    Dim oMessageFile
    Set oMessageFile= CreateObject("FileGenerator.clsMessageFile")
    oMessageFile.createFiles
    Set oMessageFile = Nothing

However this script does not execute my new VB.Net dll. Why is this and is there an alternative?
Regards,
Maggie
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Have you followed articles that talk about calling .NET assemblies from COM?

Calling a .NET Component from a COM Component
http://msdn2.microsoft.com/en-us/library/ms973802.aspx

Bob
Avatar of Maggs065
Maggs065

ASKER

Hi,
Read the article alright - but a bit too convuluted for my situation. What I was able to do was select the check box (register for com interop) in My Project properties and this so far is working fine. The public methods are being accessed through the script.

Thank you,
M.
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial