Win32 -> MAC code conversion

Hi Folks,
we have a little bit complex Win32 application written in C++ using MFC. We consider to put some effort to have the application runable on MACs. By now we know almost nothing about MACs, but in MFC includes there are lines like

#ifdef MAC

so there is probably a possibility to use it on MACs.

What we'd like to know - is there any Win32 -> MAC application convertor or
we have to rewrite the whole application. If there is such a convertor, where it can
be found ?

Thanx
izi13Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

nietodCommented:
MS used to provide libraries that allowed MFC code to be compiled and run on the mac as well. (Subject to many restrictions, i.e. there are lots of things on windows that are not available on the Mac and vice versa, but most programs could be made to work on both.)  The problem was that the two OSs have very different architectures and the amount "patching" that MS had to do in order to make a Mac appear to work like windows was enourmous, so the result was that the programs worked sort of slowly, had great overhead, and were somewhat buggy.  (I think it was a pretty amazing acheivement all the same.)  However, to the best of my knowledge they abandoned this approach years ago, like when windows 95 was released.  So I don't think that compiling the same code on both platforms is realistically possible now.

However, I don't think I would recommend that anyways--the results weren't good.  Instead try to clearly seperate all you user interface code from the application's processing code.  Place them in seperate files etc.  Then create one version of the user interface for the mac and one for windows, the two can share the same processing code.  This will yield much better results on both platforms.
0
KangaRooCommented:
For the user interface you might consider using a portable class library like wxWindows, http://www.wxwindows.org/
But that won't help you porting the current application.
0
jhavarCommented:
if u use an IDE "codewarrior" on MAC, it has built in support for MFC and you can compile all the windows MFC code as it is.
hope this helps.
reg
v
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
izi13Author Commented:
Thanx all of you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.