Ambiguous symbol error C2872 with WinAPI

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My C++/CLI program uses the WinAPI to create a document, and my use of the
Rectangle function--BOOL Rectangle (HDC hDC, int nLeft, int nTOP, int nRight,
int nBottom--results in a compiler error C2872-'Rectangle':ambiguous symbol.

How can I resolve this ambiguity?


Thanks,
David
 
davidk13 said:
My C++/CLI program uses the WinAPI to create a document, and my use of the
Rectangle function--BOOL Rectangle (HDC hDC, int nLeft, int nTOP, int nRight,
int nBottom--results in a compiler error C2872-'Rectangle':ambiguous symbol.

Have you tried ::Rectangle( /*...*/); ?

Tom
 
Back
Top