|
-
April 11th, 2008, 03:35 PM
#1
Namespace conflit with Gdiplus
Hi!
I created a Point class like this:
namespace ProjectX {
namespace Drawing {
class Point{...};
};
};
When I declare Point with using namespace ProjectX: rawing, the compiler feel ambiguis with Gdiplus::Point and ProjectX: rawing::Point. I haven't include Gdiplus header...
How can I resolve that conflict?
Thanks,
Michel.
-
April 11th, 2008, 03:38 PM
#2
Re: Namespace conflit with Gdiplus
Either of:
1) Don't use:
Code:
using namespace ProjectX::Drawing;
2) Use:
Code:
using ProjectX::Drawing::Point;
Viggy
-
April 14th, 2008, 06:37 PM
#3
Re: Namespace conflit with Gdiplus
Cool, it's work!
Tanks for your answer!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|