laptop and a wrench

漏洞

Issues with ‘ControlsMapMeasureTool’ as a customized button on the menu strip in an ArcEngine application

上次发布: August 25, 2014 ArcGIS Engine
漏洞 ID 编号 NIM061664
已提交October 1, 2010
上次修改时间June 5, 2024
适用范围ArcGIS Engine
找到的版本10.1
编程语言C#
操作系统Windows OS
操作系统版本XP
状态Duplicate

附加信息

NIM064391

解决办法

The solution is to modify the manifest file and add the version 6.0 Common Control Library specification there instead of relying on Enabling Visual Styles.For example here is how I was able to get this to work for the MapControl Template.- Create a new MapControl Template.- Right-click on the project, select add new item- Add an Application Manifest File- Add the following to the Manifest: <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> So your full manifest would look like this:<?xml version="1.0" encoding="utf-8"?><asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"> <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <!-- UAC Manifest Options If you want to change the Windows User Account Control level replace the requestedExecutionLevel node with one of the following. <requestedExecutionLevel level="asInvoker" uiAccess="false" /> <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> If you want to utilize File and Registry Virtualization for backward compatibility then delete the requestedExecutionLevel node. --> <requestedExecutionLevel level="asInvoker" uiAccess="false" /> </requestedPrivileges> </security> </trustInfo></asmv1:assembly>

重现步骤

漏洞 ID: NIM061664

软件:

  • ArcGIS Engine

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项