我有一个问题。当我在 C# 应用程序中导入 COM dll (VB6) 时,一切都很好。它可以编译并运行。
但是,当我在其他电脑上使用该应用程序时,出现错误消息:
Unable to cast an object to COM type Installation.VB6FenetreClass Installation._VB6Fenetre interface type. This operation failed because the QueryInterface call on the COM component for the interface with IID {4CD38B1B-45F1-4DC5-910E-3579664306B9} ' failed due to the following error: this interface is not supported (BingTranslated)
但我不明白为什么。
最佳答案
欢迎来到 DLL hell 。您正在测试的计算机上注册的版本与您正在开发的计算机上注册的版本不同(或具有不同的 GUID)。
关于c# - 引用 com 程序集 dll 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3857699/