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. Cross Platform development

Cross Platform development

Scheduled Pinned Locked Moved The Lounge
4 Posts 4 Posters 0 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.
  • S Offline
    S Offline
    Steven Hicks n 1
    wrote on last edited by
    #1

    Does any one know how to make a MFC app compatible to compile and run on Linux, Mac of any other OS? (Without a lot of changes) -Steven Visit Ltpb.8m.com
    Looking for more tutorials? Ltpb.8m.com/Tutorial
    3D Image Library: Ltpb.8m.com/Image
    Surf the web faster than ever: http://www.404Browser.com

    F N 2 Replies Last reply
    0
    • S Steven Hicks n 1

      Does any one know how to make a MFC app compatible to compile and run on Linux, Mac of any other OS? (Without a lot of changes) -Steven Visit Ltpb.8m.com
      Looking for more tutorials? Ltpb.8m.com/Tutorial
      3D Image Library: Ltpb.8m.com/Image
      Surf the web faster than ever: http://www.404Browser.com

      F Offline
      F Offline
      Fazlul Kabir
      wrote on last edited by
      #2

      The one I know is Visual WinMain from Mainsoft. To do the opposite (UNIX to Windows), use MKS Toolkit for Enterprise Developers // Fazlul


      Get RadVC today! Play RAD in VC++ http://www.capitolsoft.com

      1 Reply Last reply
      0
      • S Steven Hicks n 1

        Does any one know how to make a MFC app compatible to compile and run on Linux, Mac of any other OS? (Without a lot of changes) -Steven Visit Ltpb.8m.com
        Looking for more tutorials? Ltpb.8m.com/Tutorial
        3D Image Library: Ltpb.8m.com/Image
        Surf the web faster than ever: http://www.404Browser.com

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

        There are some utilities that let you do this, but AFAIK they all are significanlty priced and many charge royalties. You can try converting your app to a cross-platform C++ library, such as wxWindows (which has good Windows and Linux support, and improving Mac support). It is in many ways similar to MFC, but if you have a large app of course this will take some time. :) The good thing is, it can coexist with MFC, so you may be able to do it in pieces. The early bird may get the worm, but the second mouse gets the cheese.

        R 1 Reply Last reply
        0
        • N Navin

          There are some utilities that let you do this, but AFAIK they all are significanlty priced and many charge royalties. You can try converting your app to a cross-platform C++ library, such as wxWindows (which has good Windows and Linux support, and improving Mac support). It is in many ways similar to MFC, but if you have a large app of course this will take some time. :) The good thing is, it can coexist with MFC, so you may be able to do it in pieces. The early bird may get the worm, but the second mouse gets the cheese.

          R Offline
          R Offline
          rdwells
          wrote on last edited by
          #4

          Navin wrote: You can try converting your app to a cross-platform C++ library, such as wxWindows (which has good Windows and Linux support, and improving Mac support). It is in many ways similar to MFC, but if you have a large app of course this will take some time. The good thing is, it can coexist with MFC, so you may be able to do it in pieces. I have a fair amount of cross-platform (Windows/Mac) experience, and IMHO the best way to write a cross-platform application is to abstract out the user interface, and write the rest as portably as possible. Then implement the UI portion using a good platform-specific class library for each platform (e.g. MFC on Windows, PowerPlant on the Mac). Yes, it is more work, but it won't scream "THIS IS A PORT" to savvy users. BTW: separating the UI from the core functions of the app has plenty of other advantages, like making it easier to add scripting. - Rich I don't know about ignorance, and I don't care about apathy, but I simply will NOT put with intolerance!

          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