A Problem I Solved Last Night
来源:互联网 发布:淘宝返现怎么领取 编辑:程序博客网 时间:2024/04/26 11:47
As we know,the frame of MFC use the patten of observe.When we create a single document application,it create an application class,a frame window class a view window class and a document class.The view window is a child of the frame.
As I know little about the observer patten,and Many detail of it are strange to me,a problem occure last night,and cost me hours to solve it.I try to add a view window to the frame,so I create a class who derive from CFormView.The class of CFormView is require a dialog to associate with it.The dialog who associate with CFormView class must have the style of CHILD.But I don't know of this.A error dialog was show when I run my program,and it was terminated when I clicked the ignore button.I didn't know what had happen.The debug programe show the line where the error occured,this line was just a function-call code,and I didn't clear about the function.
I went into the code of this function and traced the path the programe go with.Many time I try,and no result come out.Painful I was.In the processe of the trace,I learn useful things, such as MAKEINTERSOURCE. MAKEINTERSOURCE is macro which change an integer Id which identify a source into a string which also identity a source. Finaly I found in a funtion that the resource of the dialog which accociate with the CFormView lack the sytle of CHILD.
- A Problem I Solved Last Night
- last night
- How I solved a problem about usage of pscp by requesting more information
- Is Query Optimization a “Solved” Problem?
- I did an SDK update last night and it moved adb.exe. In its place it left a file called "adb_has_mov
- [转载]FYI, How I solved Windows re-entrancy hooking problem
- A problem that solved in a formal method-Modelchecking
- The Last Night
- solved a problem about undefined / unresolved reference in c
- a problem solved by dynamic programming and some ideals
- Problem solved list
- TCO14, I bought a watch last year
- Problem 1537 - A - Stones I
- I would become a real dramer,not a day dreamer and night dreamer
- About Last Night:点亮你的夜生活
- A. Vitaly and Night
- Lesson27 A wet night
- Yesterday night I dreamed her
- ssh
- 一步一步学Silverlight 2系列(1):创建一个基本的Silverlight应用
- 一步一步学Silverlight 2系列(2):基本控件
- struts学习笔记(很详细,欢迎补充)
- 一步一步学Silverlight 2系列(3):界面布局
- A Problem I Solved Last Night
- 一步一步学Silverlight 2系列(4):鼠标事件处理
- sqlserver与存储过程在java中的调用
- 请问谁会c语言中三维数组的程序例题
- 一步一步学Silverlight 2系列(5):实现简单的拖放功能
- 一步一步学Silverlight 2系列(6):键盘事件处理
- 一步一步学Silverlight 2系列(7):全屏模式支持
- 一步一步学Silverlight 2系列(8):使用样式封装控件观感
- 一步一步学Silverlight 2系列(9):使用控件模板