'IDataObject' : ambiguous symbol error

Thread Solved

Join Date: Jun 2005
Posts: 69
Reputation: DotNetUser is an unknown quantity at this point 
Solved Threads: 0
DotNetUser DotNetUser is offline Offline
Junior Poster in Training

'IDataObject' : ambiguous symbol error

 
0
  #1
Aug 3rd, 2005
When I mix managed with unmanaged code I get the compiler error: "'IDataObject' : ambiguous symbol". How do I resolve this? Thanks.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,603
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 713
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: 'IDataObject' : ambiguous symbol error

 
0
  #2
Aug 3rd, 2005
And the rest of the error is? Post your entire compiler output when you build the application.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 69
Reputation: DotNetUser is an unknown quantity at this point 
Solved Threads: 0
DotNetUser DotNetUser is offline Offline
Junior Poster in Training

Re: 'IDataObject' : ambiguous symbol error

 
0
  #3
Aug 8th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 69
Reputation: DotNetUser is an unknown quantity at this point 
Solved Threads: 0
DotNetUser DotNetUser is offline Offline
Junior Poster in Training

Re: 'IDataObject' : ambiguous symbol error

 
0
  #4
Aug 12th, 2005
The error has been resolved.

Move all 'using namespace XXXX' from .h to .cpp
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,341
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 237
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: 'IDataObject' : ambiguous symbol error

 
0
  #5
Aug 12th, 2005
Thank you for taking the time to post the resolution to your problem.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC