Visual Studio 2010 64-bit COM Interop Issue

后端 未结 1 680
心在旅途
心在旅途 2020-12-29 07:38

I am trying to add a VC6 COM DLL to our VS2010RC C# solution. The DLL was compiled with the VC6 tools to create an x86 version and was compiled with the VC7 Cross-platform t

相关标签:
1条回答
  • 2020-12-29 08:23

    This issue can be resolved by opening the CSProj file and adding the following node to any of the '(Configuration)|Any CPU' nodes that are missing it:

    <PlatformTarget>AnyCPU</PlatformTarget>
    

    If this node is not present TlbImp will default to x86 and cause issues.

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