944,147 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Marked Solved
  • Views: 8975
  • C RSS
Aug 3rd, 2005
0

'IDataObject' : ambiguous symbol error

Expand Post »
When I mix managed with unmanaged code I get the compiler error: "'IDataObject' : ambiguous symbol". How do I resolve this? Thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
DotNetUser is offline Offline
69 posts
since Jun 2005
Aug 3rd, 2005
0

Re: 'IDataObject' : ambiguous symbol error

And the rest of the error is? Post your entire compiler output when you build the application.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Aug 8th, 2005
0

Re: 'IDataObject' : ambiguous symbol error

1) error C2872: 'IDataObject' : ambiguous symbol
2) fatal error C1903; unable to recover from previous error(s); stopping compilation
3) warning C4935: assembly access specifier modified from 'public
4) warning C4935: assembly access specifier modified from 'public

File - C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h for all 4 errors

typedef /* [unique] */ IDataObject *LPDATAOBJECT; -- selected code for Error1

IDataObject : public IUnknown -- selected code for Error2

typedef interface IDataObject IDataObject; -- selected code for Error3

typedef interface IMessageFilter IMessageFilter; -- selected code for Error4
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
DotNetUser is offline Offline
69 posts
since Jun 2005
Aug 12th, 2005
0

Re: 'IDataObject' : ambiguous symbol error

The error has been resolved.

Move all 'using namespace XXXX' from .h to .cpp
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
DotNetUser is offline Offline
69 posts
since Jun 2005
Aug 12th, 2005
0

Re: 'IDataObject' : ambiguous symbol error

Thank you for taking the time to post the resolution to your problem.
Team Colleague
Reputation Points: 2780
Solved Threads: 312
long time no c
Dave Sinkula is offline Offline
4,790 posts
since Apr 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Write to a file
Next Thread in C Forum Timeline: convert int back to char





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC