Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. error C2872: 'IDataObject' : ambiguous symbol

error C2872: 'IDataObject' : ambiguous symbol

Scheduled Pinned Locked Moved Managed C++/CLI
csharphelpc++visual-studiotutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Katamneni
    wrote on last edited by
    #1

    Hi all i am writing a custom control derived from UserControl in ManagedC++.This class is using third party unmanaged C++ classes(from VTK library) internally. When i tried to build the control i got the following following error. D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408): error C2872: 'IDataObject' : ambiguous symbol Please somebody help me how to get rid of this error. Thanks in advance Regards Kriohna

    A 1 Reply Last reply
    0
    • K Katamneni

      Hi all i am writing a custom control derived from UserControl in ManagedC++.This class is using third party unmanaged C++ classes(from VTK library) internally. When i tried to build the control i got the following following error. D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408): error C2872: 'IDataObject' : ambiguous symbol Please somebody help me how to get rid of this error. Thanks in advance Regards Kriohna

      A Offline
      A Offline
      apferreira
      wrote on last edited by
      #2

      Usually this error happens when the compiler is not able to determine which symbol you are refering to. A typical example is when you have two methods with the same name but defined in diferent namespaces used in the project. If this is the case try to use full namespaces when refering to them.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups