大佬教程收集整理的这篇文章主要介绍了Windows – 如何在Visual Basic 6.0中创建清单文件?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
重要的是,如果您希望应用程序提示用户标高,则将requestedExecutionLevel设置为requireAdministrator,而不是asInvoker.有关使用UAC的清单的具体信息可用here.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:scheR_94_11845@as-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="MymagicalApplication" type="win32" /> <description>Sample manifest for your super cool application</description> <!-- request version 6 of the common controls. --> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> <!-- Identify the application security requirements. --> <trusTinfo xmlns="urn:scheR_94_11845@as-microsoft-com:asm.v2"> <security> <requestedPrivileges> <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> </requestedPrivileges> </security> </trusTinfo> </assembly>
将清单嵌入到可执行文件中的传统方式是使用mt.exe
utility作为Windows SDK的一部分.
VBAccelerator site还有一些关于在VB 6应用程序中嵌入清单的信息.具体来说,它说:
但是,如果您希望在从VB 6 IDE构建应用程序时自动嵌入清单,那么您将遇到更多困难. VB 6 IDE不支持后期制作步骤,因此您无法在命令行上简单地运行mt.exe来为您执行此操作.有几个在网页上看到的实用程序,声称自动为您自动嵌入清单,但我相信大多数实用程序是只处理请求v6 ComCtl32.dll的旧实用程序.我不知道他们是否容易扩展,以包括UAC权限,但这是值得一提的.这里有一些链接要查看:
> http://vb6zone.blogspot.com/2010/07/make-my-manifest.html
> http://sourceforge.net/projects/ummm/
> http://www.vbforums.com/showthread.php?t=606736
> http://www.vbforums.com/showthread.php?t=430886
以上是大佬教程为你收集整理的Windows – 如何在Visual Basic 6.0中创建清单文件?全部内容,希望文章能够帮你解决Windows – 如何在Visual Basic 6.0中创建清单文件?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。