Search code examples
vbscriptasp-classiccom

Call COM object from classic ASP


How to call COM object from classic ASP? I tried hard but cannot find a good tutorial. Any recommendations?

I am using C# in classic ASP.


Solution

  • If you're using JavaScript:

    var obj = new ActiveXObject("Some.Object")
    

    For example, see this page:

    This assumes that "Some.Object" has been registered as a COM object (for example, using "regsvr32 /register SomeObject.dll").

    For further reading, O'Reilly had a decent book on this and you might consider reading this sample chapter:

    or this tutorial: