一个可以用于输出信息的窗口程序
来源:互联网 发布:python抓取动态网页 编辑:程序博客网 时间:2024/05/16 17:10
In general, we can set breakpoints under the debug mode when our program encounters some problems. However, it's inconvenient to stop the program to debug sometimes, or it's not so easy to solve some logical error just by step debuging. Besides, there will no debug environment on the customer's machine so that it's unable to debug there. And you may just hope to output some information to judge the state of certain running program.
I develop a program that can receive messages from other processes. Maybe you can use it to help you under ciucumstances described above. The principle is very easy. Use one of the interprocess mechanism: windows message. As a result, only a small segment of code need to be inserted to your code. And, I devide messages into different grade: information, warning and error. The code of my test case is shown bellow:
And the interface of this message window and the test program is shown below:
Note that the overhead of message-passing should be considered if you need to take some operation very fast. The result may be not uncertain if you insert the code of sending message.
The downloading address is http://download.csdn.net/source/1486883.
- 一个可以用于输出信息的窗口程序
- 一个简单的将GUI程序的log信息输出到关联的Console窗口中
- 一个简单的将GUI程序的log信息输出到关联的Console窗口中
- VC开一个控制台窗口用于输出
- VC开一个控制台窗口用于输出
- 在windows窗体程序中单独开一个dos命令行窗口,输出我们想要的信息(调试程序常用)
- 在cmd启动一个MFC程序,printf把信息输出到启运它的那个CMD窗口
- windows窗口程序输出printf打印信息
- 一个转换输出函数.可以用于模板转换
- 编写一个程序用于控制其他应用程序窗口的隐藏和显示:
- ListView显示列表,双击ListView里任意一行信息,出现一个可以修改的窗口
- 写一个简单的程序,实现添加多本图书信息,和遍历输出图书信息
- OutputArea,用于模拟控制台输出信息的 Swing 控件
- 让 win32 程序也可以从 console 输出信息
- 让 win32 程序也可以从 console 输出信息
- 程序运行时将打印信息输出到控制台窗口
- MFC,Win32程序向控制台(Console)窗口输出调试信息
- MFC程序添加console窗口+printf打印输出信息
- redhat Enterprise linux5.2下安装oracle10g
- linux信号处理
- linux常用命令之bash 入门指南
- java AWT 给 Font 添加删除线和下划线(2D绘图)
- 理解ORACLE数据库字符集
- 一个可以用于输出信息的窗口程序
- Thumb、ARM指令 状态切换
- 会迷茫,不要迷失
- linux文件输入输出
- linux进程控制
- 获取视图类指针的方法
- 计划
- Prototype 学习——Class对象
- The time