1. 创建classlibrary 2.编写一个COM接口和一个COM类 [Guid("DBE0E8C4-1C61-41f3-B6A4-4E2F353D3D05")] public interface IManagedInterface { int PrintHi(string name); } [Guid("C6659361-1625-4746-931C-36014B146679")] public class Interf…
1.打开VB6 2.选择 ActiveX DLL,点击打开 3.在窗口输入测试代码 Public Function addstr(str As String) As String addstr = " End Function 3.生成dll,点击确定 4.查看生成的dll 5.用反编译的软件 来查看生成的dll,反编译后的代码也就能看个大概吧 可读性不是太好 反编译这篇文章比较好:https://www.freebuf.com/news/195917.html 通过VB6将ASP编译封装成DL…