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("FileGenerato r.clsMessa geFile")
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
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("FileGenerato
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
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Calling a .NET Component from a COM Component
http://msdn2.microsoft.com/en-us/library/ms973802.aspx
Bob