COM uses GUIDs for identification so provided the GUIDs are different the COM proxies are set up right. Now if you generate a proxy for both COM dlls and put them into your project then you'll need to distinguish the two versions by namespace. For example:
namespace MyCOM1 { public class Color { } }
namespace MyCOM2 { public class Color { } }
//Also note the System.Drawing.Color structure
Now if you do this:
using namespace MyCOM1; using namespace MyCOM2; using System.Drawing;
... Color clr = new Color(); //Ambiguous, shouldn't compile
However this will compile:
MyCOM1.Color clr = new MyCOM1.Color();
Now if you try to pass a type from one namespace to the class in another namespace a compilation error should occur because the types don't match.
Can you provide some sample code that is causing problems and clarify when the error is occurring
Michael Taylor - 10/12/06
|