Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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]
Posted
Updated 18-Oct-10 21:38pm
v2

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
 
Share this answer
 
v2
Comments
Dalek Dave 19-Oct-10 3:38am    
Good Answer.
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/
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900