Is it possible? GUI in C #, application in C ++

Is it possible to create a GUI layer in C # and the rest of a C ++ application? If I am not mistaken, one of the antivirus programs had a graphical interface created in Delphi. How can I do that?

+5
source share
4 answers

You have several options for this, including:

  • Use P / Invoke to invoke a C ++ DLL from C #.
  • Open the COM interface from native code and call it from C # using COM interaction .
  • Write a native Windows service and call it from managed code.
  • Use C ++ / CLI to write a managed library in C ++ with which you can easily reference C #.

, 4, , . ( #, .) , , , , - .

+4

- ++/CLI #, . ANSI ++, , ++/CLI , #.

+4

dll ++, pinvoke #, dll.

+3

. . ,

+1

All Articles