Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2006

Tip: Looking for answers? Try searching our database.

Ambiguous symbol error C2872 with WinAPI

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
davidk13 - 10 Jul 2006 18:20 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.

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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.