相关疑难解决方法(0)

如何使用mt.exe向可执行文件添加清单?

我正在尝试使用Windows SDK中的mt.exe将清单添加到没有的清单,使用以下命令行:

C:\winsdk61>mt.exe -nologo -manifest "r:\shared\hl.exe.manifest" -updateresource:"r:\shared\hl33m.exe;#1"
Run Code Online (Sandbox Code Playgroud)

不幸的是,当我这样做时,我收到此错误:

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.
Run Code Online (Sandbox Code Playgroud)

当然在文件中找不到资源 - 文件没有清单,这就是我想添加一个的原因.

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

windows winapi manifest mt

34
推荐指数
3
解决办法
3万
查看次数

标签 统计

manifest ×1

mt ×1

winapi ×1

windows ×1