托管目标代码需要“/clr”选项?
<P>本人按照教材范例,在VC++2005上输入一简单程序,怎么运行编译不通过?哪位能提点一下,不胜感激! </P><P>// Sample02.cpp : 定义控制台应用程序的入口点。 </P>
<P><FONT color=#ff0000>#include "stdafx.h" <BR>#using <mscorlib.dll> <BR>using namespace System; <BR>int _tmain(void) <BR>{ <BR> Console::WriteLine(S"Welcome to C++ World!"); <BR> return 0; <BR>} </FONT></P>
<P><FONT color=#000000>显示错误</FONT>: <BR>g:\my documents\visual studio 2005\projects\sample02\sample02\sample02.cpp(6) : fatal error C1190: 托管目标代码需要“/clr”选项 </P>
<P><FONT color=#ff0000>托管目标代码需要“/clr”选项</FONT>这是什么意思,需要怎样设定? <BR></P>
页:
[1]
