ATL simple object wizard - “Object Xxx already exists” error

前端 未结 3 1284
名媛妹妹
名媛妹妹 2021-01-13 01:16

I am attempting to create a new COM object in my DLL using the ATL Simple Object Wizard in Visual Studio 2005.

I enter the short name for the object

相关标签:
3条回答
  • 2021-01-13 01:35

    Also happens in VS 2008. However Clean solution and Clean project from build option solves this :-)

    0 讨论(0)
  • 2021-01-13 01:49

    Is it defined in a library you are referencing?

    0 讨论(0)
  • 2021-01-13 01:58

    I never found out why the wizard determined that the object name existed already - I'm guessing something was cached somewhere that I couldn't track down.

    In the end, I appended a 2 to the end of the interface name when creating it which allowed it to be added. Then I replaced all the occurrences of IXxxInterfaceName2 with IXxxInterfaceName. Everything worked after this.

    If I ever track down the root cause of this problem, I'll update the answer.

    0 讨论(0)
提交回复
热议问题