gpt4 book ai didi

c# - 为什么 dumpbin 不显示某些 DLL 的功能?

转载 作者:行者123 更新时间:2023-12-05 05:24:43 25 4
gpt4 key购买 nike

这是一个项目 rawinput_latest.zip

目标框架:.Net 4

输出类型:类库

Building Solution 创建 dll 文件。

dumpbin/exports RawInput.dll 的输出

Microsoft (R) COFF/PE Dumper Version 14.00.23026.0
Copyright (C) Microsoft Corporation. All rights reserved.


Dump of file C:\Users\Qet\Documents\Visual Studio 2015\Projects\rawinput latest\RawInput\bin\x86\Debug\RawInput.dll

File Type: DLL

Summary

2000 .reloc
2000 .rsrc
6000 .text

为什么dumpbin 不显示RawInput.dll 的功能?我可以在另一个项目中使用该 dll 吗?

最佳答案

标志/EXPORTS 用于在 PE 中显示导出的函数。常规 C# 方法不会在 PE 中导出(通常没有必要)。您仍然可以引用 .NET 程序集 (dll) 并在其他 .net 项目中使用它。

如果您想使用非托管代码中的函数,那么您可能需要将其导出。在这种情况下,请阅读 here .如果您不需要将功能导出到其他 native 应用程序,则可能不需要它。

关于c# - 为什么 dumpbin 不显示某些 DLL 的功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33946547/

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