如何创建可以注册到 regsvr32 的库?

How to create library that can register with regsvr32?

这样 link :

RegSvr32 is only for win32 dlls, and as far as I know .NET dlls cannot be registered with regsvr32

。那么如何创建注册到regsvr32的dll呢?

你可以通读这些:

A Beginner Tutorial for Writing Simple COM/ATL DLL For VS2012

A Beginner Tutorial for Writing Simple COM/ATL DLL and Using it with .NET