Groups | Blog | Home
all groups > dotnet general > march 2004 >

dotnet general : 'IDataObject' : ambiguous symbol


EHuq
3/3/2004 9:16:06 PM
Hi there

I am facing a problem. When I include my unmanaged header file in my form1.h file, I am facing the compile error with the following messag

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408) : error C2872: 'IDataObject' : ambiguous symbo
could be 'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(246) : System::Windows::Forms::IDataObject IDataObject
or 'Form1.cpp(0) : System::Windows::Forms::IDataObject

I tried to solve this problem last 3 hours but failed
I need the solusion as soon as possible. Anybody can help me?

Regards
EHu
Heath Stewart
3/4/2004 1:03:09 AM
Both the .NET Windows Forms and COM define an IDataObject interface that are
distinct. You should fully qualify this interface. If you mean to use the
..NET "version" of the IDataObject interface, use
System::Windows::Forms::IDataObject.

--

Heath Stewart, Microsoft MVP (C#)
Director of Technology
Proplanner
http://www.proplanner.com
Phone: 515-296-3232


AddThis Social Bookmark Button