如何运送gdiplus.dll但没有Windows使用它? [英] How to ship gdiplus.dll but not have Windows use it?

查看:277
本文介绍了如何运送gdiplus.dll但没有Windows使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个依赖于gdiplus的应用程序。我需要应用程序也可以在Windows 2000上运行。



我想将GDIPlus包含在应用程序目录中,以便Windows 2000的计算机可以运行,但是如果机器是Windows XP,Windows Vista,Windows 7等,我希望它使用与Windows一起运送并更新的GDIPlus版本。



不可能?

解决方案

http://msdn.microsoft.com/en-us/library/ms997620.aspx 尝试将以下内容添加到清单中: -

 <?xml version =1.0encoding =UTF-8standalone =yes?> 
< assembly xmlns =urn:schemas-microsoft-com:asm.v1manifestVersion =1.0>
< assemblyIdentity version =1.0.0.0processorArchitecture =x86
name =Microsoft.Windows.mysampleapptype =win32/>
< description>此处的应用说明< / description>
<依赖关系>
< dependentAssembly>
< assemblyIdentity type =win32name =Microsoft.Windows.GdiPlus
version =1.0.0.0processorArchitecture =x86
publicKeyToken =6595b64144ccf1dflanguage =* />
< / dependentAssembly>
< / dependency>
< / assembly>


i have an application that has a dependancy on gdiplus. i need the application to also run on Windows 2000.

i want to include GDIPlus in the application directory, so that Windows 2000 computers will function, but if the machine is Windows XP, Windows Vista, Windows 7, etc, i want it to use the version of GDIPlus that ships, and is updated, with Windows.

Not possible?

解决方案

From http://msdn.microsoft.com/en-us/library/ms997620.aspx Try adding the following to your manifest :-

<?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="Microsoft.Windows.mysampleapp" type="win32" />
    <description>Your app description here</description>
    <dependency>
        <dependentAssembly>
            <assemblyIdentity type="win32" name="Microsoft.Windows.GdiPlus"
                version="1.0.0.0" processorArchitecture="x86"
                publicKeyToken="6595b64144ccf1df" language="*" />
        </dependentAssembly>
    </dependency>
</assembly>

这篇关于如何运送gdiplus.dll但没有Windows使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆