?
Solved

Execute VB.Net dll from vbscript

Posted on 2007-10-15
3
Medium Priority
?
1,472 Views
Last Modified: 2008-01-09
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
0
Comment
Question by:Maggs065
  • 2
3 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 20077245
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
0
 

Author Comment

by:Maggs065
ID: 20099626
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.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 375 total points
ID: 20101582
If it is working fine for you, that's all that matters.

Bob
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question