-2

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

Community
  • 1
  • 1
LaDante Riley
  • 521
  • 4
  • 14
  • 26

1 Answers1

0

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.

Ed S.
  • 122,712
  • 22
  • 185
  • 265