【发布时间】:2016-02-18 17:24:50
【问题描述】:
我得到了这个庞大的项目,其中包含许多在 dll 文件中定义的类。我需要提取该项目的一部分并从该部分创建一个新项目。我已经设法通过使用 Visual Studio 中的 Code Map 找到了一些 dll 文件,但是那里没有显示一些类。
# ifdef FCBase
# define BaseExport __declspec(dllexport)
# else
# define BaseExport __declspec(dllimport)
# endif
class BaseExport Handled
{.
.
};
什么是指定哪些 dll 文件链接到什么?
【问题讨论】:
-
链接器的附加依赖项设置。它也可以在带有#pragma 注释的源代码中完成。并且您总是可以使用 Dumpbin.exe /imports 从可执行文件本身中找出来
-
问题是那个文件夹存储了 273 个 lib 文件,我只需要几个但我不知道如何找到它们。 Dumpbin.exe /imports 是如何工作的?你能给我一个链接吗?
标签: c++ dllimport dllexport declspec