Re: a vc project which use GDI+, i get the following errors:

Tech-Archive recommends: Fix windows errors by optimizing your registry



yes.

I include gdiplus.lib in the project setting,
also i do the following:
#include <gdiplus.h>
#include <math.h>
#include <stdio.h>

using namespace Gdiplus;

so maybe there is other problem with my program? Is there any GDI+ version
with my program?

I apprecaite your help.

--
jake


"Ron Francis" wrote:

You've included gdiplus.lib in your project?
You also need to add the statement
using namespace Gdiplus;
in your code

Regards,
Ron Francis
www.RonaldFrancis.com


"Jakein2006" <peng_xh@xxxxxxx> wrote in message
news:7D671F43-83C9-4744-A1BA-19626B97D631@xxxxxxxxxxxxxxxx

when i compile a vc project which use GDI+, i get the following errors:
please tell me how to correct it and I apprecaite your help.

c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(32)
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(32) : error
C2065: 'token' : undeclared identifier
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(32) : error
C2165: 'left-side modifier' : cannot modify pointers to data
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(32) : error
C2071: 'NotificationHookProc' : illegal storage class
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(33) : error
C2146: syntax error : missing ')' before identifier 'token'
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(33) : error
C2165: 'left-side modifier' : cannot modify pointers to data
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(33) : error
C2071: 'NotificationUnhookProc' : illegal storage class
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(33) : error
C2059: syntax error : ')'
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(86) : error
C2059: syntax error : 'const'
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(95) : error
C2146: syntax error : missing ')' before identifier 'token'
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(95) : warning
C4229: anachronism used : modifiers on data are ignored
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(95) : error
C2182: 'GdiplusShutdown' : illegal use of type 'void'
c:\englishprogramfile\vc\platformsdk\include\gdiplusinit.h(95) : error
C2059: syntax error : ')'
c:\englishprogramfile\vc\platformsdk\include\gdiplusflat.h(2639) : warning
C4229: anachronism used : modifiers on data are ignored
c:\englishprogramfile\vc\platformsdk\include\gdiplusflat.h(2639) : error
C2440: 'initializing' : cannot convert from 'int' to 'enum
Gdiplus::Status'
Conversion to enumeration type requires an explicit cast
(static_cast, C-style cast or function-style cast)
c:\englishprogramfile\vc\platformsdk\include\gdiplusflat.h(2644) : error
C2146: syntax error : missing ')' before identifier 'token'
c:\englishprogramfile\vc\platformsdk\include\gdiplusflat.h(2644) : warning
C4229: anachronism used : modifiers on data are ignored
c:\englishprogramfile\vc\platformsdk\include\gdiplusflat.h(2644) : error
C2182: 'GdiplusNotificationUnhook' : illegal use of type 'void'
c:\englishprogramfile\vc\platformsdk\include\gdiplusflat.h(2644) : error
C2059: syntax error : ')'
d:\gdi+project\sourceimageviewernewver\cimageprocess.h(47) : error C2146:
syntax error : missing ';' before identifier 'm_gdiplusToken'
d:\gdi+project\sourceimageviewernewver\cimageprocess.h(47) : error C2501:
'ULONG_PTR' : missing storage-class or type specifiers
d:\gdi+project\sourceimageviewernewver\cimageprocess.h(47) : error C2501:
'm_gdiplusToken' : missing storage-class or type specifiers
d:\gdi+project\sourceimageviewernewver\cimageprocess.cpp(19) : error
C2065:
'GdiplusStartup' : undeclared identifier
d:\gdi+project\sourceimageviewernewver\cimageprocess.cpp(19) : error
C2065:
'm_gdiplusToken' : undeclared identifier



--
jake



.