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. How can i make a application which can run on mac/linux/windows?

How can i make a application which can run on mac/linux/windows?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++asp-netlinuxhelp
5 Posts 5 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.
  • B Offline
    B Offline
    bankey1010
    wrote on last edited by
    #1

    Hi All, I want to make a application which can run on all three platform (MAC/Linux/Windows). i think it is possible if i code in core c/C++ only but problem is that how can i make a window using c/C++. any suggestion would be greatfiull to me. thanks Bankey

    C S R R 4 Replies Last reply
    0
    • B bankey1010

      Hi All, I want to make a application which can run on all three platform (MAC/Linux/Windows). i think it is possible if i code in core c/C++ only but problem is that how can i make a window using c/C++. any suggestion would be greatfiull to me. thanks Bankey

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      bankey1010 wrote:

      i think it is possible if i code in core c/C++ only but problem is that how can i make a window using c/C++.

      Depends what you mean by "it is possible" :-D . You can't make the same executable run on different platform, because the format is different for each of the platform. However, if you stick to pure standard C++, then the only thing you will have to do is recompile your code for each of the platform using a different compiler. But of course, you'll probably need more than just standard C++ and there are some cross-platform GUI libraries that exist which allow you to write cross-platform code. Look for instance at wxWidgets[^].

      Cédric Moonen Software developer
      Charting control [v1.5] OpenGL game tutorial in C++

      1 Reply Last reply
      0
      • B bankey1010

        Hi All, I want to make a application which can run on all three platform (MAC/Linux/Windows). i think it is possible if i code in core c/C++ only but problem is that how can i make a window using c/C++. any suggestion would be greatfiull to me. thanks Bankey

        S Offline
        S Offline
        Sarath C
        wrote on last edited by
        #3

        bankey1010 wrote:

        i think it is possible if i code in core c/C++ only but problem is that how can i make a window using c/C++

        C/C++ is general purpose language. Even if you decide to do that with Pure C/C++, you will have to get support from Operating system. What about trying QT?[^] Cross-platform Development[^]

        -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

        My blog - Sharing My Thoughts

        1 Reply Last reply
        0
        • B bankey1010

          Hi All, I want to make a application which can run on all three platform (MAC/Linux/Windows). i think it is possible if i code in core c/C++ only but problem is that how can i make a window using c/C++. any suggestion would be greatfiull to me. thanks Bankey

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

          :-D

          1 Reply Last reply
          0
          • B bankey1010

            Hi All, I want to make a application which can run on all three platform (MAC/Linux/Windows). i think it is possible if i code in core c/C++ only but problem is that how can i make a window using c/C++. any suggestion would be greatfiull to me. thanks Bankey

            R Offline
            R Offline
            ramana g
            wrote on last edited by
            #5

            simple is use Java :)

            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