Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Eelco

GDI+ problems

This topic is 5560 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i was trying to learn myself GDI+, as it seemed to me it would be a good graphics device for the thing im planning to make. i found a gdi+ prerelease with my MS vs .net copy, and i included the gdiplus.h in my program. when i tried to compile, it found numerous errors in the gdienum.h file, to witch gdiplus.h linked. i didnt expect to find any errors in an api like this, but since it is a prerelease after all, it might still have some errors. i cant imaging them releasing something that wont even compile though... anybody who has encountered this problem? if so what should i do about it, can i d/l a later release of GDI+ somewhere?

Share this post


Link to post
Share on other sites
Advertisement
RRAAAAH!!

msdn.microsoft is driving me crazy! you can surf around in circle for hours there without finding anything you need..
i hoped i could find the gdi+ source there, but i only found a dll. im not sure but i cant include a dll into my code can i?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
i think you need to download the entire platform sdk in order to get the latest gdi+ headers and libs: http://www.microsoft.com/msdownload/platformsdk/sdkupdate/default.htm and then select the Core SDK link on the left.

Share this post


Link to post
Share on other sites
thanks anonymous,

i downloaded the gdi+ sdk, copied all the header files to my dir, and wrote the following ''program''

#include "gdiplus.h"

int main(void)
{
return 0;
};

again the compiler (ms vs.net) finds a whole bunch of errors in gdiplusenums.h, even more than before!
somebody please show me my probably noob mistake here!!

Share this post


Link to post
Share on other sites
well i dont have the time to look them up atm, but i know theyre all in the gdiplusenums.h file

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
i don''t know if you want to directly include gdiplus.h. MS is very bad about not #includeing all of the headers a given header needs, within that given header.

try #include <windows.h> instead, with a #define _WIN32_WINNT 0x0500 (or 0x0501, i forget) before it. that will indicate a targeted platform that supports gdi+.

Share this post


Link to post
Share on other sites
thanks,

im still a beginner, but i cant see how that could cause the problem... the errors are inside the enum.h, so that means its already linked in the gdiplus.h, right? maybe its missing some other files though from with enums.h depend, ill have a look.

as for the windows.h include, im not sure what youre trying to say.. im sure gdi+ works on winxp, witch i use...

enlighten me plz

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!