GDI + problems in Visual C++.NET 2003

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
 
C

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top