GDI + problems in Visual C++.NET 2003

  • Thread starter Thread starter Rafael Espericueta
  • Start date Start date
R

Rafael Espericueta

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
 
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>.
 
Back
Top