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 7178381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:54:36+00:00 2026-05-28T16:54:36+00:00

This question has been bugging me for a while. I am looking for a

  • 0

This question has been bugging me for a while.

I am looking for a testable architectural design pattern for a MFC application. Please don’t tell me MFC is already MVC or something like that because it does not make any sense as long as we can’t test the app.

I understand the rule of thumb is to make it View/Document as dumb as possible and
make other classes testable. But I want more details on that. How can I make View/Document as dumb as possible and connect them to other testable classes?

First I thought about MVP since I had some success with it for Windows .NET and Android app. But in this MFC case, we need to make Document dumb too. That complicates things.

I need an effective architecture which is maintainable in long term. Any advice from experienced developer would be appreciated.

  • 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-28T16:54:38+00:00Added an answer on May 28, 2026 at 4:54 pm

    I don’t think you may need any special design pattern to separate logics from UI. MVP can help but may not be practically necessary. The separation would be enough for testing if you can make your logics into separate dlls or static libraries and make them accessible from other applications. That will be a good start to practically make your logics to be testable.

    But even before that, I would find a good testing framework for your development environment. I had some success with Google Testing framework or Boost Testing in case of MFC.

    As for design patterns, they are very good to make your program maintainable and maximize code reuse, but I am not sure it’s a good practice to use them to make your program testable. Testability is a good property of your program but it may not be the goal of your design.

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

Sidebar

Related Questions

This is a question that has been bugging me for a while. I started
This is a question that has been bugging me for a while and I
This question has been bugging me for a while now. When writing a CSS
This question has been bugging me for a while Is it usual to have
This question has been bugging me for some time. I always picture launching my
Being new to test based development, this question has been bugging me. How much
It's not a programming questions. But this question has been bugging me for awhile.
While this question has been asked in a variety of contexts before, I can't
I know this question has been asked a bit before. But looking around I
This question has been bugging me a LOT lately. Any help would be appreciated.

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.