Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6318625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:39:38+00:00 2026-05-24T15:39:38+00:00

Is it easier to separate the core functionality of a program and port it

  • 0

Is it easier to separate the core functionality of a program and port it to Linux, or to write wrappers around the MFC functionality to get the original MFC program running in Linux?

Example:

Take your basic dialog based MFC application (several dialog windows), get it to run under Linux command line without modification of the core analysis code. The main goal is to NOT modify the analysis code. With that in mind, write a command line version of the program that uses the same files that the MFC application uses for the analysis code. Write code that will act exactly like the MFC classes and functions that are used in the analysis code. In fact, just start with the MFC source code for those classes, cut out all the Microsoft specific stuff (MFC, ATL, etc..) and use this for your wrapper code.

versus:

Take the core analysis code, plug it into a Qt command line project. For any MFC or Win32 functionality, replace it with the equivalent cross-platform compatible functionality from either Qt or STL/Boost.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:39:38+00:00Added an answer on May 24, 2026 at 3:39 pm

    Try compiling it against Winelib and you won’t have to rewrite most of the functionality.

    In the light of your comments, Given the time and resources I would definitely separate the source code in to well defined layers:

    An OS/platform dependent layer,
    An OS Abstraction Layer,
    An OS independent middleware &
    An UI layer

    This is the most basic layered architecture one would encounter in any software application. That way Whenever I need to port it to a new Operating system/Platform, I just need to write a OS/platform dependent layer and all my other layers remain unchanged. Similarly, when need arises to change the UI framework I can easily just modify the UI layer and rest of the stack remains unchanged.

    Ofcourse, such an solution needs ample time and resources at your disposable but once you do, your life is much easier in future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I find it much easier to write MXML classes with embedded Script than trying
I'm doing something different but this is an easier to understand example. Think of
My job would be easier, or at least less tedious if I could come
To make things easier when switching between machines (my workstation at the office and
Some things are easier to implement just by hand (code), but some are easier
Is there an easier way to step through the code than to start the
Is there an easier way to achieve the following? var obj = from row
Maybe world peace would be easier, but I have a problem with the widths
I figure this problem is easier than just a regular spell checker since the
What is the most secure and easier way to send approx. 1000 different records

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.