views:

75

answers:

1
+1  Q: 

ambiguous symbols

1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5934) : error C2872: 'IDataObject' : ambiguous symbol
1>        could be 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(251) : System::Windows::Forms::IDataObject IDataObject'
1>        or       'c:\windows\microsoft.net\framework\v2.0.50727\system.windows.forms.dll : System::Windows::Forms::IDataObject

can anyone help with this error?

A: 

Your project imports System.Windows.Forms from two places, from the SDK and from the deployed .Net framework. Fix your sources and/or include paths to include it only once, prefferably the one from the SDK.

Remus Rusanu