0

I have an application of live broadcaster in C/C++ with lots of API and Graphics. now i have to make design in C# . please help me how to integrate both. Thanks in advance

sandeep
  • 25
  • 1
  • 9

2 Answers2

0
  1. You can create a dll project in C++ and import the C++ dll into C# project. For more details, you can refer to: http://msdn.microsoft.com/en-us/magazine/cc164123.aspx
  2. If you want to use C++ in c# code directly, you can create a CLR(C++/CLI) project, then you can write c++ and c# code in the same project. For more details, please refer to:

http://msdn.microsoft.com/en-us/magazine/cc163852.aspx and http://www.codeproject.com/KB/mcpp/cppcliintro01.aspx

Ravi
  • 853
  • 8
  • 17
0

There are two options:

  1. Create a C interfaces and the call methods using PInvoke
  2. Create a C++/CLI wrapper

See this answer for more information

Community
  • 1
  • 1
ichramm
  • 6,437
  • 19
  • 30