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
Tamas Demjen - 10 Jul 2006 22:50 GMT
> 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
"Gary Chang[MSFT]" - 14 Jul 2006 03:11 GMT
Hi David,
Just wanted to check and see how things are going, I think the community
member Tom's suggestion must have resolved this problem.
If you have any issues or concerns, please let me know. It's my pleasure to
be of assistance.
Thanks for participating the newsgroup!
Best regards,
Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
davidk13 - 14 Jul 2006 05:38 GMT
> Hi David,
>
[quoted text clipped - 17 lines]
>
> Of course, your answer was correct. I'm new to C++, so I'm greatful for the help. Thanks a lot.
David
"Gary Chang[MSFT]" - 14 Jul 2006 06:40 GMT
Thanks for the update, David!
Have a nice day!
Best regards,
Gary Chang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.