Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Is there any way to convert MFC application to C# app?

Is there any way to convert MFC application to C# app?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++questiondiscussion
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    oleg63
    wrote on last edited by
    #1

    There is an extreme push towards .NET, but no clear way to go with traditional MFC application. Would be interesting opinion of Micrrosoft guru on that. Just woundering, is there any way to convert MFC application to C# app or C++/CLI (rewrite option is not acceptable)? And how traditional MFC MDI application have to be migrated/mutated towards .NET? I'll appreciate any opinions/suggestions. Thanks.

    M 1 Reply Last reply
    0
    • O oleg63

      There is an extreme push towards .NET, but no clear way to go with traditional MFC application. Would be interesting opinion of Micrrosoft guru on that. Just woundering, is there any way to convert MFC application to C# app or C++/CLI (rewrite option is not acceptable)? And how traditional MFC MDI application have to be migrated/mutated towards .NET? I'll appreciate any opinions/suggestions. Thanks.

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      To go to C# would be a rewrite - different framework, different language. C++/CLI is the only language that allows you to mix unmanaged code with managed code. While this is powerful, it also adds to the complexity. Going back and forth between managed and unmanaged code is tricky at first - there's a learning curve there. If you want to hold on to your MFC-based codebase, and still take advantage of the rich .NET framework, then C++/CLI is the only way to go. From my experience this works well. My 2 cents. Mark

      "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups