Click here to Skip to main content
13,556,208 members
Rate this:
Please Sign up or sign in to vote.
Hi guys,
I want port my mfc application on other than microsoft platform.
That is i want to run my simple dialog base application on mac.


Please provide me any link of guid or block of code to do so..

Posted 14-Dec-12 21:28pm
Richard MacCutchan 15-Dec-12 4:39am
As far as I am aware MFC is only available on Windows, so you would need to rewrite your application completely. If you want portable code then you should consider using Java.
Coder Block 19-Dec-12 1:05am
Hey spending whole night on PC i found QT :-)???
but i dont have idea about it??
Richard MacCutchan 19-Dec-12 4:14am
Then I guess you need to read its documentation.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

As others said, you cannot use MFC on Mac OSX.

To do what you want, you can :

- Use a multiplatform UI toolkit (Qt,Java, ... )

- If your application is "small", you can just learn the OSX language (objective-C, ...) and split your application into UI part and functional part; the functional part would be platform independant, and you will need to implement only the UI part for different platforms.
Coder Block 19-Dec-12 1:06am
QT need more idea??
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

MFC? Just forget it. No, you cannot.

As Richard MacCutchan says, you have to write a new application. If you put too much investment in MFC, this is a lesson for you: you should thoroughly separate UI from other aspects of your product. Also, if you developed on .NET, a lot of code could be used on Mac OS X or Linux, as well as many other platforms, even without recompilation, through Mono.

How anyone may know "now what"? If you spent too much time on it, it was your mistake. Either go back to Windows (and don't expect bright prospects with your MFC asserts), or live a new life in the field of different systems or in the multiplatform development. MFC is not an option. Life is life. We make mistakes, we pay for them, learn from them.

Good luck,
Coder Block 19-Dec-12 1:06am
your right ??
but now what??
i spend lot of time on it :-(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02-2016 | 2.8.180515.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100