Execute VB.Net dll from vbscript

Posted on 2007-10-15
Last Modified: 2008-01-09
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")
    Set oMessageFile = Nothing

However this script does not execute my new VB.Net dll. Why is this and is there an alternative?
Question by:Maggs065
    LVL 96

    Expert Comment

    by:Bob Learned
    Have you followed articles that talk about calling .NET assemblies from COM?

    Calling a .NET Component from a COM Component


    Author Comment

    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,
    LVL 96

    Accepted Solution

    If it is working fine for you, that's all that matters.


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    This is an explanation of a simple data model to help parse a JSON feed
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now