对gdiplus的依赖 [英] dependency on gdiplus

查看:133
本文介绍了对gdiplus的依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我构建了一个c/c ++应用程序,该应用程序必须通过Win 7在Win98上运行,并且在将其编译到我的XP机器上之后,它对gdiplus具有依赖性.
由于Win98不支持gdiplus,如何删除此依赖项?
它不需要GDIPlus,只包含一个简单的对话框.

[添加]

我看过Dependency Walker,它把GDIPlus列为对我的.EXE文件的直接依赖项. 列表看起来像这样.....

myApp.exe

I built a c/c++ application that must run on Win98 through Win 7 and after compiling it on my XP box it has a dependency on gdiplus.
Since Win98 doesnt support gdiplus how do I remove this dependency?
It has no need for GDIPlus and contains only 1 simple dialog box.

[added]

I have looked at Dependency walker and it lists GDIPlus as a direct dependency on my .EXE file.
The list looks like this.....

myApp.exe

Kernel32.DLL
User32.DLL
OLE32.DLL
.
.
.
.
GDIplus.DLL


[/添加]


[/added]

推荐答案


您可能正在针对不支持Win98的Platform SDK进行编译.请参阅此博客条目 [
Hi,
You are probably compiling against a Platform SDK which does not support Win98. See this blog entry[^].
Rebulding your app with #define WINVER 0x420 before including the windows headers might help you to find the code which uses libraries unavailable on Win9x platforms (the MFC CImage and the ATL::CImage classes for instance link to gdiplus.dll).

If you have a working copy of VC6 use it to compile for Win98 target.
If not try with the February 2003 PSDK.

Good luck,
AR


使用依赖性walkerDepends.exe找出引用gdi plus的内容

如果您拥有Developer Studio,则可以在
找到该实用程序 \ Program Files \ Microsoft Visual Studio 8 \ Common7 \ Tools \ Bin或类似的东西

或者你可以在这里得到它
http://www.dependencywalker.com/
Use dependancy walker depends.exe to find out what is referencing gdi plus

if you have developer studio this utility can be found at
\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin or something simular

or you can get it here
http://www.dependencywalker.com/


这篇关于对gdiplus的依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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