如题
解决方案 »
- 图片显示问题?
- 问个诡异的问题: MAKEINTRESOURCE()
- VC中Picture控件显示位图的问题??!!顶贴也有分。
- 什么变量,需要自己释放,程序不会自动释放,请帮忙,我感到困惑。
- 这是为什么?(急待解决的问题)
- 为什么CRecordset与数据库中的多个表相连时记录总是只读的?
- 使用ShellExecute开启一个reg(注册表)文件如何把提示信息对话窗屏蔽掉.
- AfxBeginThread Assert错误。
- Vxd!Vxd!求解文件系统IFSMGR中的程序问题。
- 用VC++做图像旋转处理,但是锯齿很严重,应该怎样处理?
- 能不能谈谈C++中的静态联编和动态联编?
- 能不能谈谈编译和运行呢?
用来在程序运行时检查对象的正确性。
When you write your own class, you should override the Dump function to provide diagnostic services for yourself and other users of your class. The overridden Dump usually calls the Dump function of its base class before printing data members unique to the derived class. CObject::Dump prints the class name if your class uses the IMPLEMENT_DYNAMIC or IMPLEMENT_SERIAL macro.
也是用来检查的,只不过要你自己实现。
assert(wnd.create(xx));
for your objects .
AssertValid is used to define your own rule to judge a object is
valid or not , and Dump is used to provide your own debug
infomation , u'll see it when 'afxDump << object' is been called .
如AssertValid(t==0);//用来判断t是否等于0,如果t!=0则终止程序
Dump函数一般用来显示debug信息的,其函数中的内容一般在debug时,在debug窗口中才能看到。
具体如 peterguan(糖糖) ( ) 所给的
Dump可以在调是状态下,输出类的的成员变量,方便调试.