Win7 64/32位c# dll疑问

发布于 2024-09-03 09:25:14 字数 151 浏览 2 评论 0原文

是否可以在 win7 64 位计算机中构建 ac# dll 和 tlb 文件并使其在 win7 32 位计算机中运行?

预先感谢:)

编辑: 我正在使用一个 c++ dll,它调用在我的 c# COM interop dll 项目中生成的 .tlb 文件。

is it possible to build a c# dll and tlb files in a win7 64 bits computer and make it work in a win7 32bits computer?

Thanks in advance :)

Edit:
I am using a c++ dll that calls the .tlb file generated in my c# COM interop dll proj.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

她比我温柔 2024-09-10 09:25:14

如果您正在构建纯 C# DLL,则最终不会得到 TLB 文件。以“任何 CPU”为目标构建它,它将在 32 或 64 位计算机上正常工作。

如果您要导出 COM 组件(据我所知),通常只需要 TLB 文件 - 您需要这样做吗?

If you're building a pure C# DLL, you won't end up with a TLB file. Build it with a target of "Any CPU" and it will work fine on 32 or 64 bit computers.

You'd normally only need a TLB file if you're exporting a COM component (as I understand it) - do you need to do that?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文