'IDataObject' : ambiguous symbol

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
Back
Top