DLL将不会在构建后事件中复制

问题描述 投票:0回答:1

我正在测试如何在C ++中使用DLL。为此,我关注Microsoft walk-through。一切都按预期进行,但我被困在"To copy the DLL in a post-build event"

这是我输入的内容:enter image description here

构建程序时,一切看起来不错,但是没有文件被复制。enter image description here

并且当我运行程序时,出现此错误:enter image description here

有人知道我的问题的解决方案吗?

c++ visual-studio dll
1个回答
1
投票

Hans Passant指出,我将命令放在Post-Build事件属性的描述框中。一切都在按现在的方式进行。

© www.soinside.com 2019 - 2024. All rights reserved.