'IDataObject' : ambiguous symbol

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
 
H

Heath Stewart

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top