gpt4 book ai didi

c# - 如何使用 c# 中未注册的 dll?

转载 作者:行者123 更新时间:2023-11-30 15:10:59 25 4
gpt4 key购买 nike

我有一个需要通过 C# 访问的自定义 dll(未注册)。如何在不注册 DLL 的情况下执行此操作?

编辑:它是一个 C++ dll。

最佳答案

参见 Registration-Free COM Interop :

Registration-free COM interop activates a component without using the Windows registry to store assembly information. Instead of registering a component on a computer during deployment, you create Win32-style manifest files at design time that contain information about binding and activation. These manifest files, rather than registry keys, direct the activation of an object.

Using registration-free activation for your assemblies instead of registering them during deployment offers two advantages:

  • You can control which DLL version is activated when more than one version is installed on a computer.
  • End users can use XCOPY or FTP to copy your application to an appropriate directory on their computer. The application can then be run from that directory.

关于c# - 如何使用 c# 中未注册的 dll?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2869746/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com