windows - 如何重新分配 Gdiplus (GDI+)?

标签 windows dll gdi+ distribution

我需要使用我的应用程序重新分发 gdiplus.dll v.1.1,并确保使用这个特定版本。例如。 Windows XP 有系统版本的gdiplus.dll 但不能升级(v.1.0)。但是如果我把我的 gdiplus.dll 放到应用程序文件夹中,系统仍然使用。为什么?如何解决?

MSDN says :

If you are redistributing GDI+ to a downlevel platform or a platform that does not ship with that version of GDI+ natively, install Gdiplus.dll in your application directory. This puts it in your address space, but you should use the linker's /BASE option to rebase the Gdiplus.dll to prevent address space conflict.

但我不知道如何 rebase gdiplus.dll 以及为什么,有人可以解释一下吗?

[编辑] 似乎 Microsoft 决定不为 Windows XP 提供 GDI+ 1.1,而只为 Vista 等提供。好身手。谢谢大家

最佳答案

您实际上不需要对其进行 rebase 。如果您不这样做,那么 DLL 将在加载时自动 rebase 。这会对启动速度产生轻微影响,但我猜它甚至不会被检测到。

但是,您似乎无法将 GDI+ 1.1 重新发布到 XP:How do I install GDI+ version 1.1 on Windows XP?

关于windows - 如何重新分配 Gdiplus (GDI+)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4947210/

相关文章:

c++ - 转换在路径和矩形中的工作方式不同

.net - 如何用 .Net 画一个点?

c# - 如何获得所有屏幕的 DPI 比例?

windows - IIS w3svc 错误

dll - 从 .C 文件创建 .dll 文件

java - dll可以在MAC os上加载

c# - 使用可拖动和可调整大小的选择窗口创建自定义图片框

Java 应用程序性能问题

windows - 针对变量的管道添加 "if arguement"

c - Lua无法加载VC++ dll