Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-31-2005, 04:15 PM   #1
LQ Newbie
Registered: Dec 2003
Posts: 29

Rep: Reputation: 15
Compiling/Converting MFC to Linux

Hello all,

I have a large application that was originally develped under windows using parts of the MFC class library. Generally, all the MFC calls are to menu buttons, lists, and dialogs.

I would like to bring the application over to Linux, but the question is what is the better way to do it?

1) I could compile the program on linux using Wine, will I lose performance? If wine is every discontinued I could be in a heap of trouble, so i also do not like to be dependant upon them.

2) If I strip out the MFC program, which is the best library under Linux to replace it with Qt? I would like to replace it with something universal, well supported, and closly related to MFC.


Last edited by PhaseSpace; 02-01-2005 at 10:48 AM.
Old 02-01-2005, 10:49 AM   #2
LQ Newbie
Registered: Dec 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Old 02-01-2005, 11:01 AM   #3
Registered: Aug 2004
Location: Aachen, Germany
Distribution: Debian Sarge
Posts: 129

Rep: Reputation: 15

AFAIK, there is no "MFC-to-something-else" wrapper or "MFC for Linux" available. Sorry to tell you, but you have to recode manually all the MFC calls (or write an wrapper yourselves). You know that MFC is owned by a company not very sympathic with Linux, do you ?

For the non-GUI MFC stuff ("CString"), you would have to recode it it to STL which is also available for Win32.

The main choices for portable GUI frameworks is either Trolltech's Qt (free on Linux, expensive on other platforms) or GTK (free, but somehow limited).

Wine is an option, but IMHO not a very satisfying one - too much of trade-in in performance.

Sorry, I would love to have better news.


Old 02-01-2005, 12:09 PM   #4
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
Keep watching the mono project. This is a cross-platform .net implementation.

Others are kylix3 from Borland (free) which is similar to a Linux port of Delhi plus C++ support, or Trolltech qt3.
Old 02-02-2005, 01:02 PM   #5
LQ Newbie
Registered: Dec 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Ok, thanks for the replys.

Looks like the best route is to port the program to Qt. I am looking at using Qt embedded as our program is currently on Windows embedded, but it is a question of whether or not Qt embedded can work with OpenGL. Otherwise I will go with straight Qt.

Thanks for your responces.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting from VC++: MFC Support on Linux sheenak Programming 2 01-13-2005 05:14 AM
Using MFC under WineLib rjlee Programming 0 01-12-2005 08:23 AM
MFC Coding Ameii83 Programming 3 12-22-2004 10:53 PM
MFC and GTKMM janiv Linux - Software 0 09-11-2003 05:57 AM
Does my Brother MFC-5100c work under linux? mikeylikesit! Linux - Hardware 2 10-08-2002 10:06 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration