Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 Visual-Studio MFC Linux MacOS , +
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..
 

Thanks,
Posted 14-Dec-12 22:28pm
Comments
Richard MacCutchan at 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 at 19-Dec-12 1:05am
   
Hey spending whole night on PC i found QT :-)???
but i dont have idea about it??
Richard MacCutchan at 19-Dec-12 4:14am
   
Then I guess you need to read its documentation.
Rate this: bad
good
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.
  Permalink  
Comments
Coder Block at 19-Dec-12 1:06am
   
QT need more idea??
Rate this: bad
good
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.
 
—SA
  Permalink  
Comments
Coder Block at 19-Dec-12 1:06am
   
your right ??
but now what??
i spend lot of time on it :-(
Sergey Alexandrovich Kryukov at 19-Dec-12 3:58am
   
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,
—SA

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

  Print Answers RSS
0 BillWoodruff 360
1 Mathew Soji 309
2 DamithSL 225
3 Afzaal Ahmad Zeeshan 202
4 Maciej Los 190
0 OriginalGriff 6,249
1 Sergey Alexandrovich Kryukov 5,853
2 DamithSL 5,183
3 Manas Bhardwaj 4,673
4 Maciej Los 3,865


Advertise | Privacy | Mobile
Web01 | 2.8.1411019.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2014
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