点击 开始\所有程序\Microsoft Visual Studio 2008\Visual Studio Tools 以管理员身份运行Visual Studio 2008 Command Prompt。
//注册Dll
在Visual Studio 2008 Command Prompt 键入 E:\>regasm mydll.dll .
eg:E:\>regasm E:\AssignmentFiles\MultiSatellite_trainee\OutD\DVComLib.dll
有些Dll得先转换才注册成功
//转换DLL
在Visual Studio 2008 Command Prompt 键入 E:\>Tlbimp mydll.dll .
eg:E:\>Tlbimp E:\AssignmentFiles\MultiSatellite_trainee\OutD\DVCom.dll
转换成功提示如下
Microsoft (R) .NET Framework Type Library to Assembly Converter 3.5.21022.8
Copyright (C) Microsoft Corporation. All rights reserved.
Type library imported to DVComLib.dll