本文出自:http://www.cnblogs.com/margiex/archive/2007/05/08/739336.html 首先创建DLL库,代码如下: using System;using System.Runtime.InteropServices;namespace ANamespace 将上面的代码保存为AClass.cs,然后编译: csc /t:library AClass.cs 将得到一个AClass.dll,然后注册:regasm AClass.dll /tlb /codebase 最后创建一个HTML测试网页,内容如下: <html><head> 相关文章: 2021-06-14 2021-09-29 2022-02-11 2021-05-17 2022-12-23 2021-07-12