gpt4 book ai didi

windows - 如何使用 mt.exe 将 list 添加到可执行文件?

转载 作者:可可西里 更新时间:2023-11-01 12:04:48 26 4
gpt4 key购买 nike

我正在尝试使用 Windows SDK 中的 mt.exe 将 list 添加到没有 list 的可执行文件中,方法是使用以下命令行:

C:\winsdk61>mt.exe -nologo -manifest "r:\shared\hl.exe.manifest" -updateresource:"r:\shared\hl33m.exe;#1"

不幸的是,当我这样做时,我得到了这个错误:

mt.exe : general error c101008c: Failed to read the manifest from
the resource of file "r:\shared\hl33m.exe". The specified resource
type cannot be found in the image file.

当然,在文件中找不到资源 - 该文件没有 list ,这就是我要添加 list 的原因。

如何将 list 附加到可执行文件?这不应该很简单吗?

最佳答案

您应该使用/outputresource 而不是/updateresource:

正确的命令行应该是:

mt.exe -nologo -manifest "r:\shared\hl.exe.manifest" -outputresource:"r:\shared\hl33m.exe;#1"

关于windows - 如何使用 mt.exe 将 list 添加到可执行文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1423492/

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