CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2002
    Location
    Terrebonne, Quebec, Canada
    Posts
    67

    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.

  2. #2
    Join Date
    Feb 2002
    Posts
    4,640

    Re: Namespace conflit with Gdiplus

    Either of:

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

  3. #3
    Join Date
    Jun 2002
    Location
    Terrebonne, Quebec, Canada
    Posts
    67

    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
  •  





Click Here to Expand Forum to Full Width

Featured