Multimobile Development: Building Applications for any Smartphone
GDI + problems in Visual C++.NET 2003
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.vc.


Rafael Espericueta
GOOD ANSWER
I simply can't get the examples to compile correctly...

I created a "new project" as a Windows Forms Application.

In the Form1 code, I put
#include <gdiplus.h>
right after the "#pragma once".

However, when I build the "solution", I get several
mysterious error messages saying there are syntax errors
in gdiplus.h! The first one complains about the line:

typedef UINT GraphicsState;

But there is no "missing ';' before
identifier 'GraphicsState'.

PLEASE HELP!!! This can be very frustrating. I have no
idea what to do about this! I may have to stick with
pure math from now on...

Thanks,
-Rafael, a frustrated mathematician
Reply to this message...
Vote that this is a GOOD answer... (1 vote from another user already)
 
 
    
Christopher Crooker
This would occur if UINT is undefined. Make sure you have <windows.h> or
some other base header that defines UINT included before you include
<gdiplus.h>.

"Rafael Espericueta" <Click here to reveal e-mail address> wrote in message
news:00ae01c34baa$001fbf70$Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
 
System.Drawing.Drawing2D.GraphicsState




Multimobile Development: Building Applications for any Smartphone
Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734