Search code examples
c#visual-c++mfc

How is WinForms programming in Visual C++/C# different from Windows programming in Visual C++(MFC)


How is winforms programming in visual c++/c# different from windows programming in visual c++(MFC).

Also I want to know whether C# is strong enough to do Windows programming as in other than forms.


Solution

  • There are a few notable differences:

    • You'll eventually be more productive as it is much easier to do (.net)
    • The language helps you from making a lot of common mistakes (null pointers, overflows, leaks)
    • The framework is a lot (and really I mean a lot) more clean than MFC
    • In essence you can do almost anything. The least common 0.01% of things you need to do through direct win32 DLL invokes (or use a wrapper or library someone else made)