Question:
How to create windows form application in C in Visual studio 2019?
?
2020-12-21 23:57:08 UTC
I only see C# for windows from applications, but not C. Is there a way to code windows form applications in C in visual studio 2019?
Four answers:
?
2020-12-22 17:03:01 UTC
you want C++. it is the latest version of C.
husoski
2020-12-22 02:58:52 UTC
No.  Windows Forms is a .NET API and and there's no compiler for C for the .NET common language infrastructure (CLI).



You can't even get true C++.  It's C++/CLI, and you need to use the nonstandard part of that for anything dealing with the .NET libraries, including forms.  However, C++/CLI supposedly has features that make calling "unmanaged" code (meaning non-.NET code) easier than with C# or VB.NET.  If you have enough existing C code to make the effort worthwhile, you might try to compile it as C++, fix up any incompatibilities with modern C++, and then put that in a library you can call from managed code.  The UI will still be in C++/CLI though, since a .NET language  is required for forms.



However, C# is still the only major language designed from the ground up for writing .NET code and supporting all .NET features.  If you're serious about wanting to develop .NET code, then learning C# should be a priority for you.
Pearl
2020-12-22 00:48:09 UTC
if you type this on the search bar it might show you how to do it
Epic Gamer
2020-12-21 23:58:44 UTC
Visual Studio only supports C#, C++ and Visual Basic WinForm applications, as far as I'm concerned.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...