Applications compiled by VC Program Running in Vista may fail due to permission issues.
Use the following method to add a manifest file to the application. When the program is running, the system will jump out of the UAC dialog box and get the management permission.
1. Open the application'sSource codeEngineering
2. Add a "Custom" resource, enter "Resource Type" in 24, change the resource ID to 1, and then copy the following content to the resource content to save
<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<Assembly xmlns = "urn: Schemas-Microsoft-com: ASM. V1" manifestversion = "1.0">
<Assemblyidentity
Version = "1.0.0.0"
Processorarchitecture = "x86"
Name = "mulitray.exe. manifest"
Type = "Win32"
/>
<Trustinfo xmlns = "urn: Schemas-Microsoft-com: ASM. V3">
<Security>
<Requestedprivileges>
<Requestedexecutionlevel level = "requireadministrator" UIAccess = "false"/>
</Requestedprivileges>
</Security>
</Trustinfo>
</Assembly>
3. Re-compile the application, and then you will find that the icon of the widely used program will have a small shield icon under Vista.