Integrating Visual C++ on .NET Framework 2.0 with C# Library
I am familiar with C# programming. Today I need to integr开发者_开发技巧ate one Visual C++ program on .NET Framework 2.0 with my C# library. After referencing my C# library, a new C++ class is created. But the following line cannot be compiled in the new class.
using namespace MyCSharpLibSpace;
The error is that "The namespace does not exist". Why? I think I can use the namespace after referencing it, right?
I also did another trial on .NET Framework 3.5. I created a simple HelloWorld Visual C++ project. It works fine. What I did is the same as above. It seems that it is different to integrate Visual C++ program with C# library on 3.5 and 2.0? How to do that on 2.0?
I appreciate so much for your help!
Bing
精彩评论