Call COM object from classic ASP

前端 未结 2 1165
花落未央
花落未央 2021-01-16 16:09

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.

2条回答
  •  失恋的感觉
    2021-01-16 16:34

    If you're using JavaScript:

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

    For example, see this page:

    • http://www.webreference.com/js/column55/activex.html

    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:

    • http://oreilly.com/catalog/devaspcom2/chapter/ch10.html

    or this tutorial:

    • http://www.15seconds.com/Issue/980930.htm

提交回复
热议问题