vc ++中的错误 [英] Error in vc++

查看:99
本文介绍了vc ++中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个名为Sock的基于对话框的应用程序,已成功编译并执行.但是之后,当我尝试添加按钮及其处理程序时,遇到了错误,例如更新类SockDlg的文件时出错".

I have developed a dialog based application named Sock, compiled and executed successfully. But after that when i try to add a button and its handler i have encountered with an error as "Error in updating the file(s) for class SockDlg".

推荐答案

每次添加事件处理程序时, VC向导都会在BEGIN_MESSAGE_MAPEND_MESSAGE_MAP之间解析类的消息映射,并且每次在类中添加与对话框模板中的控件绑定的变量或控件时,DoDataExchange中的代码.
如果您在DoDataExchange中添加了一些自定义代码,或者您手动修改了消息图,则可能会由于无法理解该代码而从IDE中获得一些错误.
The VC wizards parse the message map of your class, between BEGIN_MESSAGE_MAP and END_MESSAGE_MAP each time you add an event handler, and the code inside your DoDataExchange each time you add a variable or control in your class bound to a control in your dialog template.
If you added some custom code to the DoDataExchange or you have manually modified the message map, then it''s possible that you get some error from the IDE because it is not able to understand the code that you manually added.


我确定这不是完整或确切的错误消息.该文件是只读的吗?您是否尝试过清理并重建所有建筑?代码会更改吗?您可以手动更改代码吗?
I''m sure that''s not the full or exact error message. Is the file read only ? Have you tried a clean and rebuild all ? Does the code change ? Can you change the code manually ?


这篇关于vc ++中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆