Run MFC program on Linux

E.Freitas picture E.Freitas · Aug 4, 2011 · Viewed 13.3k times · Source

I have a rather large MFC based program. I have been tasked to get it running on Linux. I have explained that this will require a re-write of the program either into straight C++ with STL (more work), or into Qt/C++ (less work). I am now told that I need to write wrappers to get every MFC class working in Linux and use preprocessor directives to only compile what is needed in either Linux or Windows. I explained that we are having a communication disconnect and that I believed this to be more work than rewriting the entire project from scratch (which I would not have to do to convert to Qt).

Any good arguments out there to help explain this issue? Am I wrong?

Answer

Brendan Long picture Brendan Long · Aug 4, 2011

If you don't want a full rewrite, you could try compiling against Winelib. Most things should just work and then since you have the source, you can work around the parts that don't.