I'm currently going through a process of refactoring includes to reduce compile time, and I've come across the following compile error:
[C++ Error] some_class.cpp(53): E2015 Ambiguity between 'IID_IDropTarget' and 'Virtualtrees::IID_IDropTarget'
The line of code it points to is:
if (iid == IID_IUnknown || iid == IID_IDropTarget)
If I use Virtualtrees::IID_IDropTarget
it compiles fine, however I need to use COMs IDropTarget interface which I have implemented. I believe the problem might be that the Virtualtrees component has another implementation of the IDropTarget interface and they are conflicting.
Any ideas how I can specify that I don't want Virtualtrees::IID_IDropTarget
? Or the namespace I use for COM's IID_IDropTarget?