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. The Lounge
  3. Porting MFC to run under Linux

Porting MFC to run under Linux

Scheduled Pinned Locked Moved The Lounge
c++comlinuxquestion
8 Posts 6 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    What are the options when one wants to port an MFC application to run under Linux? Is the their a porting tool that enables this to be done? Joel VssConnect - Remote SourceSafe(r) Access http://www.voxcode.com[^]

    J N F 3 Replies Last reply
    0
    • L Lost User

      What are the options when one wants to port an MFC application to run under Linux? Is the their a porting tool that enables this to be done? Joel VssConnect - Remote SourceSafe(r) Access http://www.voxcode.com[^]

      J Offline
      J Offline
      Jon Newman
      wrote on last edited by
      #2

      I heard 'Windows' is a really cool way to run MFC apps.


      "I have a strange ginger man living on my roof!"
      Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]

      M N 2 Replies Last reply
      0
      • J Jon Newman

        I heard 'Windows' is a really cool way to run MFC apps.


        "I have a strange ginger man living on my roof!"
        Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]

        M Offline
        M Offline
        Matt Newman
        wrote on last edited by
        #3

        Jonny Newman wrote: I heard 'Windows' is a really cool way to run MFC apps. Yeah, I still can't believe that Microsoft won't let us run Microsoft Foundation Classes on other platforms, I mean who do they think they are? The creators of MFC? Matt BURN HIM! - David Wulff

        1 Reply Last reply
        0
        • L Lost User

          What are the options when one wants to port an MFC application to run under Linux? Is the their a porting tool that enables this to be done? Joel VssConnect - Remote SourceSafe(r) Access http://www.voxcode.com[^]

          N Offline
          N Offline
          Navin
          wrote on last edited by
          #4

          MFC is very tied to Windows, it is (for the most part) a thin layer over Win32 APIs. Not the best choice for a cross-platform app. That being said, some options might be: Wine/[^] - stands for Wine's not an emulator - it allows some Windows programs to run on Linux. There may be more to it, too, such as libraries, etc. The other option is to gradually port your MFC app over to a cross-platform framework, such as wxWinows*[^]. It's easier if you can write an app from scratch, but it can co-exist with MFC, allowing you to do it in pieces. Along those lines, there's also VCF[^]. There may be other libraries and frameworks and stuff out there if you are willing to pay enough $$$. If you're lucky, perhaps some day the .NET framework will run on Linux[^] and you might be able to port your apps to managed C++ or C# or something. But I'll believe it when I se it. :| Good luck, and may the force be with you. :-D * Caution: addictive! Since starting using wxWindows, I can't stop. If I have to write throw-away or temporary code, I use MFC, but for real apps, I now use wxWindows, even for plain Windows apps. "When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein

          M 1 Reply Last reply
          0
          • J Jon Newman

            I heard 'Windows' is a really cool way to run MFC apps.


            "I have a strange ginger man living on my roof!"
            Jonathan 'nonny' Newman Homepage [www.nonny.com] [^]

            N Offline
            N Offline
            Navin
            wrote on last edited by
            #5

            The sad thing is... with VS.NET, most MFC apps won't run on all versions of Windows... unless you tweak them to delay-load certain DLLs that don't exist on all platforms. I think I liked MFC from VS 6.0 better than MFC from VS.NET. The same exact code compiled with 6.0 will work on MORE platforms than the same code compiled with VS.NET! "When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein

            1 Reply Last reply
            0
            • N Navin

              MFC is very tied to Windows, it is (for the most part) a thin layer over Win32 APIs. Not the best choice for a cross-platform app. That being said, some options might be: Wine/[^] - stands for Wine's not an emulator - it allows some Windows programs to run on Linux. There may be more to it, too, such as libraries, etc. The other option is to gradually port your MFC app over to a cross-platform framework, such as wxWinows*[^]. It's easier if you can write an app from scratch, but it can co-exist with MFC, allowing you to do it in pieces. Along those lines, there's also VCF[^]. There may be other libraries and frameworks and stuff out there if you are willing to pay enough $$$. If you're lucky, perhaps some day the .NET framework will run on Linux[^] and you might be able to port your apps to managed C++ or C# or something. But I'll believe it when I se it. :| Good luck, and may the force be with you. :-D * Caution: addictive! Since starting using wxWindows, I can't stop. If I have to write throw-away or temporary code, I use MFC, but for real apps, I now use wxWindows, even for plain Windows apps. "When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity." - Albert Einstein

              M Offline
              M Offline
              Matt Newman
              wrote on last edited by
              #6

              Navin wrote: If you're lucky, perhaps some day the .NET framework will run on Linux You can already run .NET on FreeBSD and MacOSX (theoretically any BSD though). Matt BURN HIM! - David Wulff

              R 1 Reply Last reply
              0
              • L Lost User

                What are the options when one wants to port an MFC application to run under Linux? Is the their a porting tool that enables this to be done? Joel VssConnect - Remote SourceSafe(r) Access http://www.voxcode.com[^]

                F Offline
                F Offline
                F Braem
                wrote on last edited by
                #7

                You can find an article on the IBM website which explains porting an application from MFC to wxWindows: http://www-106.ibm.com/developerworks/linux/library/l-mfc/[^]

                1 Reply Last reply
                0
                • M Matt Newman

                  Navin wrote: If you're lucky, perhaps some day the .NET framework will run on Linux You can already run .NET on FreeBSD and MacOSX (theoretically any BSD though). Matt BURN HIM! - David Wulff

                  R Offline
                  R Offline
                  roel_
                  wrote on last edited by
                  #8

                  Not the Windows Forms part though.

                  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