How can I implement a C++ interface in C#
-
hi all, To strip off circular dependency between a C# proj and a C++ proj, I need to define an interface in C++ proj. and implement it with C#. The code is like this: //in C++ proj. using namespace A __gc __interface IA { void display(); } //in C# proj. public class B : A.IA { void display(){} } the error message is like this: COM Interop registration failed. Could not find a type library for assembly "A.IA" ... 3q for help! :) Dilly
-
hi all, To strip off circular dependency between a C# proj and a C++ proj, I need to define an interface in C++ proj. and implement it with C#. The code is like this: //in C++ proj. using namespace A __gc __interface IA { void display(); } //in C# proj. public class B : A.IA { void display(){} } the error message is like this: COM Interop registration failed. Could not find a type library for assembly "A.IA" ... 3q for help! :) Dilly
Please Check that mangaed c++ u referenced r nt
-
Please Check that mangaed c++ u referenced r nt
Hi, I've searched a lot on internet and in msdn library, but I don't exactly know what really works. I can use call C++ method in my C# project, but I can not implement the C++ interface, I know little about COM/COM+, can you tell me more? 3q!!! Dilly