GDI+ problems
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?
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?
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?
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.
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!!
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!!
well i dont have the time to look them up atm, but i know theyre all in the gdiplusenums.h file
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+.
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+.
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement