Ambiguous symbol error C2872 with WinAPI

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
 
T

Tamas Demjen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top