在C#项目中调用VB COM时如何添加tlb文件
问题描述:
我正在研究一个使用大量COM +组件的项目. 注册此com后,他们创建了一个dll文件和tlb文件.
I'm working on a project that uses a lot of COM+ components. After register this com, they create a dll file and a tlb file.
答
该消息已清除.单击程序集"选项卡,然后添加.NET程序集,而不是使用类型库将其添加为COM库.如果为COM +配置了该组件,则应该可以在Program Files \ ComPlus应用程序下找到该组件. 文件夹.请记住,您可以同时创建32位和64位COM +组件,因此请确保在相应的Program Files文件夹下查找.
The message is clear. Click on the Assemblies tab and add the .NET assembly instead of adding it as a COM library using a type library. If the component is configured for COM+ you should be able to find it under the Program Files\ComPlus Applications folder. Keep in mind that you can create both 32-bit and 64-bit COM+ components so make sure to look under the appropriate Program Files folder.