include header problem (I'm using VS.NET 2005 beta2)

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I'm trying to use GDI+

fisrt it tooks me 1/2 an hour to realize that
#include <GdiPlus.h>
was failing SILENTLY
as a matter of fact
#include <kgdsfjrehgkjrehglierdjhglkrdhgkjfdhgdehjkrefhkj>
fails silently as well!

I'm using a default ManagedC++ template what kind of stupid default option
remove the warning for header not found, I wonder?

Anyway, once I figured this out, I try to add the correct include path:
Project => Properties => Configuration Properties => C/C++ => General =>
Additional Include Directories
where I set the path
"C:\Program Files\Microsoft Platform SDK\Include"

But the include keeps failing!
(I know it as my statement
using namespace GdiPlus
on line 10 keeps failing)

Any tip on how to include this header successfully?
 
well, from weird to weirder.
I found an option to keep the precompiled file and it looks like the header
is correctly included.
however for some unfathomable reason using namespace Gdiplus; fails...
 
Lloyd Dupont a écrit :
well, from weird to weirder.
I found an option to keep the precompiled file and it looks like the header
is correctly included.
If you are using a precompiled header file (usually stdafx.h", anything
that is *before* the #include <stdafx.h> (other #include statements or
whatever) is ignored by the compiler

Arnaud
MVP - VC
 
oh...
tricky one....

thanks!

--
There are 10 kinds of people in this world. Those who understand binary and
those who don't.

Lloyd Dupont a écrit :
well, from weird to weirder.
I found an option to keep the precompiled file and it looks like the
header
is correctly included.
If you are using a precompiled header file (usually stdafx.h", anything
that is *before* the #include <stdafx.h> (other #include statements or
whatever) is ignored by the compiler

Arnaud
MVP - VC
 
Back
Top