Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
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.

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.
 
Share this answer
 
Comments
Coder Block 19-Dec-12 1:06am    
QT need more idea??
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
 
Share this answer
 
Comments
Coder Block 19-Dec-12 1:06am    
your right ??
but now what??
i spend lot of time on it :-(
Sergey Alexandrovich Kryukov 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900