1

我需要使用我的 Outlook 加载项中TaskDialog提供的Windows API Code Pack。我收到了这个错误:

TaskDialog feature needs to load version 6 of comctl32.dll
but a different version is current loaded in memory.

我按照MSDN中提供的步骤进行操作。我添加了一个资源文件并插入了提供的代码:

<?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="http://www.w3.org/2001/XMLSchema-instance">
    <assemblyIdentity version="1.0.0.0" name="MyAssemblyName.vsto"/>

    <!--Enable themes for Windows common controls and dialogs (Windows XP and later)-->
    <dependency>
        <dependentAssembly>
            <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
        </dependentAssembly>
    </dependency>
</asmv1:assembly>

我知道我必须在项目属性中选择清单文件,但遗憾的是,选择清单的控件被禁用:

项目属性

我需要一个解决方案,所以我可以使用TaskDialog.

4

0 回答 0