过程:新建工程选择ActiveXDLL将工程名改为:projectname将类名改为:classname将DLL的代码复制进去生成projectname.dll文件将projectname.dll文件复制到system32目录运行regsvr32.exeprojectname.dll''''''''''''''''''''''''''''''