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 4 4836
davidk13 wrote:
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
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.
""Gary Chang[MSFT]"" wrote:
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.
Of course, your answer was correct. I'm new to C++, so I'm greatful for the help. Thanks a lot.
David
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: nmyatt |
last post by:
Hi,
The project I'm working on consists mainly of legacy VC6 C++ and VB,
but we wish to write all new code in C#. So I'm looking at ways for
exposing .NET functionality to VB and C++ through...
|
by: Lee Gillie |
last post by:
I have a VS6 project which I brought into VS .NET, and all has been
building fine. Then I upgraded to VS 2003 and I have one source which
will no longer compile. Any clues?
Compiling......
|
by: rodri rodri via DotNetMonster.com |
last post by:
I have done a program with windows forms in "Visual C++". I have implemented a function that returns two values. For example:
double functionExample(int parameter, double __gc* result2);
And...
|
by: bor_kev |
last post by:
Hi,
i am developing under Microsoft Visual Studio 2005 (C++). I am using
managed classes ( ref class Myclass) and STL.NET but i am facing two
main problems :
- As u know, now pointers are...
|
by: nicolas.hilaire |
last post by:
Hi group,
when using unmanaged class with my managed app, I've seen errors when
including (for example) <windows.h>.
One of theses erros is :
IDataObject : ambiguous symbol error
I've seen...
|
by: Rick |
last post by:
Error 2 error C2872: 'IDataObject' : ambiguous symbol C:\Archivos de
programa\Microsoft Visual Studio 8\VC\PlatformSDK\include\objidl.h 7408
this is the error i got by mix managed and unmanaged...
|
by: Prasad |
last post by:
HI,
I am a beginner in VC++..
I am trying to write a Win32 console application in visual studio..
I am using following header files..
#include <STRING>
using namespace std;
#include...
|
by: phnimx |
last post by:
I'm attempting to migrate a predominately MFC application that I've just
inherited from
Visual Studio.NET 2003 to Visual Studio 2005. I've managed to clean up a
myriad of compile and link errors...
|
by: dakshayini |
last post by:
Hi,
I have created one project in Visual studio 2005.
For my application i need to put Sleep() function.n i have added the #include <windows.h>
Now if i run this i am getting error as'...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
| |