| 
 用vs2010的MFC向导创建了个对话框项目,就加了个Button和RichEdit,然后用向导创建不了Button的单击事件就自己手动加了个,然后运行程序,程序跑了下就自动退出了。 “ACSProject.exe”: 已加载“C:\Documents and Settings\tianxinwei\桌面\ACSProject\Debug\ACSProject.exe”,已加载符号。  | 
|
| 
 
向导怎么创建不了单击响应? 在设计里按钮上双击即自动添加 
 | 
|
| 
 手动添加之前确实自动添加不了,双击按钮没反应,右键按钮选择类向导还是添加事件都没反应,在类属性事件栏找到ID点开之后选择BN_CLICKED也是添加不了,说是无效的值。最后在网上搜了下所那只能手动添加了,手动添加了之后我试了下现在可以自动添加了。 上面这个问题是怎么回事呢,大家给看看  | 
|
| 
 我加断点调试了下             if (has_cctor == 0) 会退出 static int __cdecl check_managed_app ( pDOSHeader = &__ImageBase;         if (pDOSHeader->e_magic != IMAGE_DOS_SIGNATURE) pPEHeader = (PIMAGE_NT_HEADERS) ((BYTE *) pDOSHeader + pDOSHeader->e_lfanew);         if (pPEHeader->Signature != IMAGE_NT_SIGNATURE)         if (pPEHeader->OptionalHeader.Magic != IMAGE_NT_OPTIONAL_HDR_MAGIC)         /* prefast assumes we are overflowing __ImageBase */         return pPEHeader->OptionalHeader.  | 
|
| 15分 | 
 
代码功能归根结底不是别人帮自己看或讲解或注释出来的;而是被自己静下心来花足够长的时间和精力亲自动手单步或设断点或对执行到某步获得的中间结果显示或写到日志文件中一步一步分析出来的。 
提醒:再牛×的老师也无法代替学生自己领悟和上厕所! 单步调试和设断点调试是程序员必须掌握的技能之一。  | 
Debug|DebugRunToCursor |Ctrl+F10 |Runs the program to the line containing the cursor Debug|DebugEnableBreakpoint |Ctrl+F9 |Enables or disables a breakpoint Debug|DebugRestart |Ctrl+Shift+F5 |Restarts the program Debug|DebugRemoveAllBreakpoints |Ctrl+Shift+F9 |Removes all breakpoints Debug|DebugStepOver |F10 |Steps over the next statement Debug|DebugStepInto |F11 |Steps into the next statement Debug|DebugGo |F5 |Starts or continues the program Debug|DebugToggleBreakpoint |F9 |Inserts or removes a breakpoint Debug|DebugStepOut |Shift+F11 |Steps out of the current function Debug|DebugStopDebugging |Shift+F5 |Stops debugging the program Debug|DebugQuickWatch |Shift+F9 |Performs immediate evaluation of variables and expressions  | 
|
| 25分 | 
 
向导文件已损坏, 重建工程吧, 就两个控件 
 | 
| 
 
楼主怎么解决这个问题的,我也是这个问题,那个虚拟地址为空是怎么回事? 
 | 
|
| 
 
BOOL ***App::InitInstance() 
{ AfxEnableControlContainer(); AfxInitRichEdit();//加上这行 ———————————-应该是richEdit的问题  | 
|