本文介绍了C ++ CLI表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计......我想我在这里遗漏了一些东西...... 


在CLI C ++中我制作了一个主要形式,而另一个形式是我计划通过菜单项点击事件提出......该表格被称为 

" AddDirForm "



我的代码如下所示:


Form ^ AddFolderForm = gcnew AddDirForm();

Application :: Run(AddFolderForm);


intellisense不会给我错误...但是当我运行它时,它说:

" 错误
98
error C2061:语法错误:标识符'AddDirForm' "


我尝试了许多方法来声明表单并显示它...但我得到的错误一点都不...


我错过了什么......请帮助我。 : - )

解决方案


hey guys... i guess i'm missing something here... 

in CLI C++ i made a main form, and a nother form which i plan to bring forth by means of menu item click event...  that form is called 
"AddDirForm"

i already added he header "AddDirForm.h" file

my code looks like this:

Form ^ AddFolderForm = gcnew AddDirForm();
Application::Run(AddFolderForm);

the intellisense doesnt give me errors... but when i run it, it says:
"Error98error C2061: syntax error : identifier 'AddDirForm'"

i tried many ways to declare the form and show it... but i get the error none the less... 

WHat am i missing... please help me. :-)

解决方案


这篇关于C ++ CLI表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 09:43