vs2005+IVF2011XE,在将CVF的Project转换为VC++.net的工程,并转换为IVF的工程之后。
(1)编译的时候出下面的警告:
mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "..."
解决办法:项目属性—>配置属性—>链接器(linker)—>清单文件(manifest file)中,把生成清单改成否就行了。
经过进一步的探索,发现在项目属性—>配置属性—>清单工具—>输入和输出中,把嵌入清单改成否也行。
最终原因已查明
由于VC需要把生成的文件中嵌入MANIFEST文件,而由于杀毒软件之类的会握有这个文件句柄(因为杀毒软件
发现这个EXE,DLL正在读写),于是VC就写不进去了,方法是暂时关闭杀毒软件,这样就不用
改写MANIFECT
我用的是瑞星杀毒软件,有这个问题.
Hi,
This might be due to antivirus holding open
handle on the exe generated and thus when VS tries to embed the manifest it
fails with access denied.
Is Antivirus running on your machine? Does this
repro with Antivirus turned off?
If above is not the case can you provide us with a repro.
Thanks,
VC++ Team
所以,编译Release的时候关掉杀毒软件就可以了~~~~~~~~~~~~
评论