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. multi platform applications

multi platform applications

Scheduled Pinned Locked Moved C / C++ / MFC
c++
4 Posts 3 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.
  • V Offline
    V Offline
    vr999999999
    wrote on last edited by
    #1

    Is it possible to develop a multi platform applications in vc++. If yes then what i have to do for that.

    L M 2 Replies Last reply
    0
    • V vr999999999

      Is it possible to develop a multi platform applications in vc++. If yes then what i have to do for that.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You would need to ensure that you do not include any code that is platform specific. For example you would not be able to use any of the Windows SDK code if creating a UI, but would need one of the general libraries such as Qt[^].

      Use the best guess

      1 Reply Last reply
      0
      • V vr999999999

        Is it possible to develop a multi platform applications in vc++. If yes then what i have to do for that.

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        You cannot (directly) Visual Studio will only target the Windows OS (create executable for that specific OS). You will have to create different project on the OS you also want to release your application (linux, mac, ... ) Generic C++ code can be easily made to be portable (compilable) on all compilers on all the platforms you want to support. OS dependent code will need to be written for each platform (mostly UI, filesystem, ... ) There are toolkit for UI and filesystem that are cross-platform (QT, for example) that will let you write most of the code on one platform and rebuild the same code on the different other platform you want to support (I'm not expert, you will have to look that up). You will need to have a development environment for each platform you wish to develop for.

        Nihil obstat

        V 1 Reply Last reply
        0
        • M Maximilien

          You cannot (directly) Visual Studio will only target the Windows OS (create executable for that specific OS). You will have to create different project on the OS you also want to release your application (linux, mac, ... ) Generic C++ code can be easily made to be portable (compilable) on all compilers on all the platforms you want to support. OS dependent code will need to be written for each platform (mostly UI, filesystem, ... ) There are toolkit for UI and filesystem that are cross-platform (QT, for example) that will let you write most of the code on one platform and rebuild the same code on the different other platform you want to support (I'm not expert, you will have to look that up). You will need to have a development environment for each platform you wish to develop for.

          Nihil obstat

          V Offline
          V Offline
          vr999999999
          wrote on last edited by
          #4

          Thanks max. I also searched a lot on this topic i think i have to develop my application on QT.

          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