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. can VC++ create a MAC version

can VC++ create a MAC version

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionannouncement
6 Posts 6 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.
  • M Offline
    M Offline
    Mohsen Saad
    wrote on last edited by
    #1

    hello, I have created an application that works fine on Windows .How can I port this application for MAC

    J M RaviBeeR S 4 Replies Last reply
    0
    • M Mohsen Saad

      hello, I have created an application that works fine on Windows .How can I port this application for MAC

      J Offline
      J Offline
      Jeryth
      wrote on last edited by
      #2

      To answer the topic question, no I don't believe Visual Studio can compile for Mac execution. It may be a hidden feature but not one I'm aware of. Given MS dislike for Apple I don't imagine they'd make software that can support Apple hardware. For a little side note lesson, one which you may already know, the main reason program execution can't be directly taken from one machine to another ( Intel -> Apple, Apple -> Alpha, etc ) is because of the CPU architechture. The CPU internals just work differently which is why code needs to be ported rather than just copied over. If you're using ANSI standard C++ ( nothing unique to .NET, Windows environment, DirectX, etc ) all you need to do is copy the the source code and build it on a Mac with a C++ development suite. I'm not familiar with Mac development so I can't recommend a good Mac IDE. Being as .cpp and .h files are just strict ASCII text files they're universally recognizable so you should be able to just copy them straight across. If you are using Windows unique code, DirectX, or anything like that, you'll have to replace those sections with Mac compliant code. As far as I know there's no way around this. The question "Do computers think?" is the same as "Can submarines swim?" Signature Red Studios Jeryth

      1 Reply Last reply
      0
      • M Mohsen Saad

        hello, I have created an application that works fine on Windows .How can I port this application for MAC

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

        you can't, well, not easilly ... you will probably need to recode most/all of the UI, rewrite most/all file access routines, and probably graphic thingies ( if you doing things like that ). and if you use Objective-C, then, I think you will need to do A LOT OF WORK doing bridges between Objective-C and C++.


        Maximilien Lincourt Your Head A Splode - Strong Bad

        1 Reply Last reply
        0
        • M Mohsen Saad

          hello, I have created an application that works fine on Windows .How can I port this application for MAC

          RaviBeeR Offline
          RaviBeeR Offline
          RaviBee
          wrote on last edited by
          #4

          I strongly recommend rewriting your app in Java or Qt[^] instead of simply porting it to the Mac. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com

          1 Reply Last reply
          0
          • M Mohsen Saad

            hello, I have created an application that works fine on Windows .How can I port this application for MAC

            S Offline
            S Offline
            Steen Krogsgaard
            wrote on last edited by
            #5

            In VC++ 4.0 with MFC 4.0 you could cross-platform develop for Win and Mac (using MFC), but AFAIK that feature hasn't been included in any newer MS VC compilers. Cheers Steen. "To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"

            A 1 Reply Last reply
            0
            • S Steen Krogsgaard

              In VC++ 4.0 with MFC 4.0 you could cross-platform develop for Win and Mac (using MFC), but AFAIK that feature hasn't been included in any newer MS VC compilers. Cheers Steen. "To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"

              A Offline
              A Offline
              Anonymous
              wrote on last edited by
              #6

              Visual C++ 4 did provide cross compilation. Only for Mac OS 7 till 9, never for anything beyond. It is secretly believed that Micrsoft did continue development on a Mac version of their new compilers but none of them were available to the public. If you target Mac OS X, it is impossible to use this compiler. You will have to revert to other tools. If you target the older platform (minority of Mac users now), you can still use that compiler but the native mac tools are much better. I did a couple of years back a project where we started with Visual C++ cross compilation and we ended up migrating to Metrowerks. For mac cross compilation, you need both machines sitting next to each other (same appletalk network). Given the difference in quality of current compilers on all platforms compared with the old Visual C++ 4, I strongly recommend you to seek native solutions when compiling for the Mac. For Mac OS X, the development tools from Apple are free. Good luck, and drop me a line at macchess at internetcontact.be if this helped.

              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