Possible Duplicate:
Possible to call C++ code from C#?
I have an issue. I have a project that requires me to call a code that was written in Visual C++ 6.0 by someone else from my VS2008 C# code. I was wondering if anyone know how to do this. Thanks
If the assembly is COM visible you can add it as a reference to your C# project.
If not, you can use PInvoke to do so. Also, PInvoke.net is an invaluable resource for this sort of thing.
精彩评论