JasonDavis
JasonDavis

Reputation: 48933

Can you build Winforms applications with C++?

I saw some Youtube videos that claimed they showed how to build a C++ applications using Winforms.

As far as I knew you needed something else like QT. Is it really possible to build using the same WinForms you would use to build a C# application but with C++ instead?

Upvotes: 3

Views: 1207

Answers (2)

Nick Rolando
Nick Rolando

Reputation: 26157

In VS ('05), you can go to File->New->Project... Then Visual C++ -> CLR -> Windows Forms Application. Have fun :)

Upvotes: 2

JaredPar
JaredPar

Reputation: 754515

WinForms is managed code and is usable from practically every language with runs on the CLR. So standard native C++ can't build a winforms app. However managed C++ or C++/CLI can build WinForm apps in native code.

In general though I would question why you were doing this. If you are willing to have mixed mode C++ it would probably be much faster to

  • Build the UI in C#
  • Communicate with your native backend through a mixed mode C++ layer.

Upvotes: 6

Related Questions