C ++ CodeDOM解析器错误:内部错误 [英] C++ CodeDOM parser error: Internal Error

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

问题描述







加载设计器时遇到一个或多个错误。错误如下所示。一些错误可以通过重建项目来修复,而其他错误可能需要更改代码。


C ++ CodeDOM解析器错误:内部错误

隐藏

解决方案

< span style ="font-family:Arial">我也遇到过这个问题,在寻找解决方案的过程中,我找到了几个这样的线程,没有人提出解决方案。但是,我可能有一个给你!!!

我发现当你的代码变得非常大时,自动生成的代码真的非常混乱!它甚至将重复的行放入并在错误的位置插入代码导致错误!!!

如果将代码移动到它应该的位置并不能修复它,那么还有另一件事就是自动生成代码忘了,非常挑剔。寻找缺少"this->"的行。部分!例如,它将开始自动生成如下所示的行:

Button_MyButton =(gcnew System :: Windows :: Forms :: Button());

但是如果你添加
" this->"部分类似于以下内容:

this-> Button_MyButton =(gcnew System :: Windows :: Forms :: Button());


然后它停止抱怨!

当你的代码变大并且这些错误开始发生时,你必须非常小心自动生成的代码!

我希望这可以帮助人们在那里节省一些时间...

干杯,
卡尔

One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.


C++ CodeDOM parser error: Internal Error

Hide    

解决方案

I have been having this problem as well, and in my search for a solution I found several threads like this where noone posed a solution. However, I potentially have one for you!!!

I have found that when your code gets quite large the auto generated code gets really REALLY messy! It even puts duplicate lines in and inserts code in the wrong place causing errors!!!

If moving the code to where it is supposed to be doesn't fix it, then there is another thing that the auto generated code forgets and is VERY picky about. Look for lines that are missing the "this->" parts! For example, it will start auto generating lines like the following:

Button_MyButton =  (gcnew System::Windows::Forms::Button());

However if you add the
"this->" part like its supposed to do like the following:

this->Button_MyButton =  (gcnew System::Windows::Forms::Button());


then it stops complaining!

When your code gets large and these errors start occuring, you have to be very careful with the auto generated code!

I hope this helps people out there and saves them some time...

Cheers,
 Carl


这篇关于C ++ CodeDOM解析器错误:内部错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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