Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use C++/CLI to program Winforms applications

Is there a pdf or video or some media that can inform me on how to program Winforms with C++. Obviously C++ is the most common programming language and I already have some prior knowledge. But when I try to find media about programming in C++, the examples are usually Console applications. I want some media that can teach me how to program Winforms in C++.

like image 353
Mohit Deshpande Avatar asked Dec 10 '25 04:12

Mohit Deshpande


2 Answers

Here's a tutorial showing how to write Windows Forms applications in C++/CLI.

Just be aware that most samples tend to be in C#. Many people purposely use C# for the forms, C++ for their logic, and use C++/CLI to expose their logic as .NET assemblies (For easy use by C#/VB.NET). This helps, since the design-time experience is much nicer in C# or VB.NET for Windows Forms.

like image 83
Reed Copsey Avatar answered Dec 13 '25 10:12

Reed Copsey


Bad idea, IMHO. Managed C++ is ugly; it was never meant to be a garbage-collected language. Its strength lies elsewhere. I recommend C# instead - similar syntax, highly marketable skill.

Preemtive snarky comment: all C++ is ugly.

like image 22
Seva Alekseyev Avatar answered Dec 13 '25 12:12

Seva Alekseyev