[SLE] MFC based programs to Linux?
![](https://seccdn.libravatar.org/avatar/583396203041db3d119dd42b8ffc799e.jpg?s=120&d=mm&r=g)
Hello. I was wondering if anyone here might know if there is a library, or anything else, that would make it easy to port MFC based programs to Linux? I am trying to talk a programmer into porting his Windoze program to Linux and that is his big concern at this time. Thank you in advance. ;-) James Ruhsam www.tsc-ashes.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
![](https://seccdn.libravatar.org/avatar/7be15f4c71a45bbaa6a40011640179d6.jpg?s=120&d=mm&r=g)
* JR (jruhsam@pcisys.net) [20000517 22:49]:
I was wondering if anyone here might know if there is a library, or anything else, that would make it easy to port MFC based programs to Linux?
Yes there are such libraries, but prepare to spend a lot of money, because
they are commercial products. The ones I know of are Wind/U from Bristol
Technologies http://www.bristol.com and MainWin from Mainsoft
http://www.mainsoft.com, allthough the latter has only be announced for
Linux and there is Freecell downloadable as a demo. BTW, there's a link to
a review of MainSoft in Dr. DOBBS on Mainsofts web site.
But prepare to spend a few thousand bucks for each (can't really tell,
because Mainsoft has no prices on their web site and Bistols site is
unnavigatable with a text mode browser).
AFAIK, there is no free implementation of the MFC available. There are
libraries like wine, but for wine you would have to program directly to the
win32 API and loose all the ease of a class library like MFC. Allthough IMO
MFC and ease of use are contradictions in terms, leave alone my comments on
MFCs implementation. I wouldn't say that MS doesn't have smart programmers,
but those obviously work on more lucrative projects.
The cheapest way would be to use a library wxwin, which is available for
both Windows. The other alternative would be Qt, which is also available
both for Linux and Windows, but only the Linux version is free. You have to
buy a license for the Windows version from Troll Tech.
Philipp
--
Philipp Thomas
![](https://seccdn.libravatar.org/avatar/16cb3d04483755a9dce1371cb29b12ff.jpg?s=120&d=mm&r=g)
Depends on what you want. If you want something that takes MFC routines and translates to Linux, then your probably out of luck, unless it runs under Wine. But if your programmer doesn't mind rewriting his code to use other libraries then you are in with a chance. WxWindows is a free set of libraries for just such a thing. There are others but this stands out as being very good. They provide a wrapper around MFC for windows based applications, and also wrap GTK and Motif for Linux. Also on the way hopefully is a Qt wrapper and support for other platforms, such as the Mac, BeOs. Check it out on www.wxwindows.org where they also have links to a number of cross platform apps that have used the libraries. I've used it only on a small project to test it's viability and was quite impressed. I've left the company I was working for at the time, so I've not needed to do something like that since. Good luck, and good hunting RikD JR wrote:
Hello.
I was wondering if anyone here might know if there is a library, or anything else, that would make it easy to port MFC based programs to Linux? I am trying to talk a programmer into porting his Windoze program to Linux and that is his big concern at this time.
Thank you in advance. ;-) James Ruhsam www.tsc-ashes.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (3)
-
jruhsam@pcisys.net
-
pthomas@suse.de
-
Rik.Dunphy@motorola.com