We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide

How easy is it to get a program written in visual studio to work on mac

Horlock
Horlock Posts: 1,027 Forumite
I have a program very similar to what I want but I wrote it in visual basic within visual studio. I'm now working for an employer who only uses mac.

Although similar the program will probably be started from scratch, although some of the code should be recyclable.

I could ditch visual studio but I don't know if I'm being silly. Ideally I'd like my new program to work on both mac and pc.

I'm not a programming expert, in fact the last time I wrote any code at all was probably 5 years ago, and have never been formally taught - but always willing to try something new.

That said if it is easy to create a program which will work on both mac and pc from within visual studio then it seems better to stick with what you know.
There is no intelligent life out there ... ask any goldfish!
«1

Comments

  • Mr_Toad
    Mr_Toad Posts: 2,462 Forumite
    edited 16 April 2013 at 12:51PM
    Visual Studio will not run on a Mac, it is designed to run on Windows and Apple run OS X, there is no OS X version of Visual Studio.

    You could run it in a VM under Windows but that won't really help you.

    You would need to port the VB to a BASIC that will run and compile on the Mac using something like RealBasic which is far from perfect to say the least. For a start none of the Windows API calls or functions will work.

    For real portability your code should have been written in C++

    Google Coding for OS X to give you some idea what you're up against.
    One by one the penguins are slowly stealing my sanity.
  • Horlock
    Horlock Posts: 1,027 Forumite
    Just to clarify I don't want visual studio to run on the mac. Just the program I make in visual studio to run on a mac.
    There is no intelligent life out there ... ask any goldfish!
  • andrewjf
    andrewjf Posts: 285 Forumite
    Tenth Anniversary 100 Posts Combo Breaker
    Mr_Toad wrote: »

    For real portability your code should have been written in C++

    No, for real portability, write it in Java.
  • Mr_Toad
    Mr_Toad Posts: 2,462 Forumite
    Visual Studio complies the VB into an exe file to run on Windows. There is no option to compile your program for any other operating system.

    VB uses Windows specific runtime libraries and APIs (Application Programming Interface) all specific to Windows.

    OS X is a *nix based OS and is completely different, it does not use exe files.
    One by one the penguins are slowly stealing my sanity.
  • Mr_Toad
    Mr_Toad Posts: 2,462 Forumite
    andrewjf wrote: »
    No, for real portability, write it in Java.

    Truly portable yes, once compiled it will run on any machine that has the JVM installed but Java is written in C and much of its syntax is based on C and C++ :D
    One by one the penguins are slowly stealing my sanity.
  • andrewjf
    andrewjf Posts: 285 Forumite
    Tenth Anniversary 100 Posts Combo Breaker
    Mr_Toad wrote: »
    Truly portable yes, once compiled it will run on any machine that has the JVM installed but Java is written in C and much of its syntax is based on C and C++ :D

    With one big improvement - garbage collection. :D
  • prowla
    prowla Posts: 14,316 Forumite
    Part of the Furniture 10,000 Posts Name Dropper
    Can you run WINE on a Mac?
  • andrewjf
    andrewjf Posts: 285 Forumite
    Tenth Anniversary 100 Posts Combo Breaker
    prowla wrote: »
    Can you run WINE on a Mac?

    Apparently you can. I've found it a bit 'hit-and-miss' though on Ubuntu. Some applications don't run.
  • Lum
    Lum Posts: 6,460 Forumite
    Part of the Furniture 1,000 Posts Photogenic Combo Breaker
    Is it written in Visual Basic 6 (or earlier) or Visual Basic.net?

    If it's VB.net then you could compile it under Mono to produce a Mac-native version. It may need some tweaking but since you wrote this originally you should be able to handle that, right?

    Bonus points: Doing it this way keeps Java off your system.
  • [Deleted User]
    [Deleted User] Posts: 4,466 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    Python or Ruby?
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 353.9K Banking & Borrowing
  • 254.3K Reduce Debt & Boost Income
  • 455.2K Spending & Discounts
  • 246.9K Work, Benefits & Business
  • 603.5K Mortgages, Homes & Bills
  • 178.3K Life & Family
  • 261.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.