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

  • Home
  • SEARCH
  • 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 6584803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:34:58+00:00 2026-05-25T16:34:58+00:00

We are developing C++ apps (lots of MFC) with Visual Studio 2005 on Windows.

  • 0

We are developing C++ apps (lots of MFC) with Visual Studio 2005 on Windows.

From time to time it happens that our nightly builds and/or unit tests hang because some part of some app or helper tool opens a message box in a corner case that is hit by the build.

Since the automated stuff is run (by a Windows Service) without any desktop session attached, obviously no-one can confirm – or even read – the GUI messages.

Is there any way to have Windows prevent apps from opening dialogs? Or maybe a tool that watches a service session that auto-kills any app that opens a dialog box?

I’m thinking that most cases where apps display unexpected popup-messages, it will end up calling one of the MessageBox* functions from user32.dll and it might be just possible to “magically” have these functions fail for a certain login-session? (Just a wild idea.)

Obviously the “right” fix is to have stuff not opening any dialogs, but with 3rd party tools it ain’t always possible and with our tools it would be nicer to have a failing unit test that tells me the test “illegally” opened a message box than have a hanging unit test.

(Side notes: We’re using Boost.Test for our unit tests and FinalBuilder for our automatic build scripts.)

Note: Removed original tags [continuous-integration build-automation automated-tests] and rephrased question to be more process centric.

  • 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-25T16:34:58+00:00Added an answer on May 25, 2026 at 4:34 pm

    You can load a DLL in each of the processes which puts a hook onto MessageBoxA and MessageBoxW. You can either do this manually or via the Detours library. You can then either have it return straight away without calling the real function or you could even implement some form of logging to notify your CI of the error.

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

Sidebar

Related Questions

I'm developing a library for use in other apps and this library has lots
I've been developing web apps for over a decade now, all the way from
We are developing some mobile apps for iOs and Android platforms. And our target
Can we start developing apps for the upcoming windows mobile 7. Are developer tools
I'm developing an iPhone (and later Android) app that has real-time features, i.e. when
I'm developing an application that needs to store lots of records in an organized
i started developing apps in Titanium,in that i have already set android sdk path
Am developing one apps using sqlite.I created database in main Activity ,I created that
I'm newbie in developing apps for smartphones, but have lots of experience writing desktop
I am developing apps for ios and android sdk. Is there any tutorial that

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.