点击 开始\所有程序\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
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/172127.html原文链接:https://javaforall.cn