Windows GUI code with Windows message Problem debugging tool

Source: Internet
Author: User

Windows GUI code with Windows message Problem debugging tool

A long time ago, I remember the saying that human beings are different from the standard of animals is the use of tools. Also in the software development industry, the use of tools is also a master and entry-level players of the main difference,
Experts often rely on the use of tools in the critical time to open the situation, in the appropriate time to use the appropriate tools can often be more effective.

First, let's discuss the following two simple questions.

1. If you write a software problem, this problem only when the program is closed to appear, how do you debug it?
2. If you write a software problem, this problem only when the machine is turned off, how do you debug it?
3. If you write a software out of a problem, you suspect may be this program message processing has a problem, how do you debug it?
3. If you write a software out of a problem, you suspect may be the resource file property of this program may have a problem, how do you debug it?

You don't really want to restart the computer once in a while to reproduce the problem? Oh..

The first thing I want to introduce to these questions is Spy + +, a tool that accompanies many versions of Visual Studio.
Not that can not build wheels, if you do not know there is this thing to build wheels, I will despise you, hehe, do not despise the Visual Studio comes with tools, they can often do a lot of NB things, but you may

It's not going to work.

Not much to say, below, open Spy + + to drag the small circle of the Find window to the small circle you are interested in, select Properties, you can see all the properties about this window, select the message, you can capture this

The window receives all the message, for the message related question, the message tracking, the resource attribute question debugging, said Spy + + is the artifact, not at all.

Although Spy + + is the artifact on the capture of the message, he has a lack of functionality, he can only capture messages, can not send messages to the window, which for many problems of simulation and analysis is very inconvenient

So I have the following tool I would like to introduce: SendMessage, is an open source gadget, you can download from the following link:

http://sourceforge.net/projects/stefanstools/files/SendMessage/

SendMessage This gadget is used in a very similar way to Spy + +, so that they work together to use the same thing, to choose a window through this tool,

You can send message, post message to this window, directly select a different period of messages for sending, including the system before the shutdown of the message simulation.

Section

Through the introduction of these two small tools, I believe that the beginning of a few questions the reader has the answer, but I still want to say, as a software engineer, do not go through the problem of reckless,

Right time to use the right tool is too important, or even if you add more classes is futile, Hope to help everyone, brothers refueling!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.