Click to See Complete Forum and Search --> : Namespace conflit with Gdiplus


Skynet
April 11th, 2008, 03:35 PM
Hi!

I created a Point class like this:

namespace ProjectX {
namespace Drawing {

class Point{...};

};
};


When I declare Point with using namespace ProjectX::Drawing, the compiler feel ambiguis with Gdiplus::Point and ProjectX::Drawing::Point. I haven't include Gdiplus header...

How can I resolve that conflict?

Thanks,
Michel.

MrViggy
April 11th, 2008, 03:38 PM
Either of:

1) Don't use:
using namespace ProjectX::Drawing;
2) Use:
using ProjectX::Drawing::Point;
Viggy

Skynet
April 14th, 2008, 06:37 PM
Cool, it's work!

Tanks for your answer!