How do I call .NET code (C#/vb.net) from vbScript?
问题 I imagine I can compile a C# DLL and then expose it as a COM object so that it can be CreateObject'd from VBscript. I'm just not sure the steps involved in doing this... 回答1: It can be very simple to do this. But there are a lot of places where it's not so simple. It depends a lot on what your class needs to be able to do, and how you intend to deploy it. Some issues to consider: Your class has to have a parameterless constructor. It can't expose static methods. Is deploying your COM DLL in