How to create an interface using a .NET application for C ++?

I wrote all the code for the application in C ++. This is standard C ++ written using Visual Studio 2010.

I want to create a GUI using .NET. Is it possible? Thank!

+3
source share
3 answers

There are many options, here are a few from the top of the head:

  • Wrap C ++ code in a Windows DLL, invoke C ++ code from .NET using P / Invoke.

  • Wrap C ++ code in a com object, .NET can directly use com objects.

  • Wrap C ++ code inside some type of managed C ++ shell (C ++ / CLI), loading and using this new assembly in the .NET GUI.

Some more exotic ideas:

  • , . ++ . , ++ -.

  • ++ , .NET GUI. , ++ .NET.

: DLL p/invoke. COM DLL , COM / ( ATL, ..). ++/CLI , , , .

+1

, Expression Studio, WPF. P/Invoke GUI, .NET.

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

+1

You can interop interact with unmanaged code and have your own graphical interface written in managed code, but overall it will not be a great developer experience.

0
source

All Articles