这个错误只能说VC编译器还不够智能啊
在使用前需要使用Common Language Runtime Support (/clr).
在配置属性中,选择general-》选择clc (Configuration Properties/General/Common Language Runtime support)
解释:This is not C++ but Managed C++ (clr) and thus needs to be specified in project properties at Configuration Properties/General/Common Language Runtime support. There you will see drop down box with options.
本文介绍了解决Visual C++编译器在处理Managed C++代码时出现的错误的方法。通过设置项目属性中的Common Language Runtime Support选项,可以确保代码正确地作为托管C++进行编译。
1万+

被折叠的 条评论
为什么被折叠?



