c++/cli enabled

May 11, 2011 at 12:37pm
closed account (zwA4jE8b)
Can anyone tell me how to enable CLI is VS2010. I cannot use the directive #using without doing that.
May 11, 2011 at 12:44pm
closed account (z05DSL3A)
What you are asking does not quite make sense, can you clarify? What are you trying to achieve?
May 11, 2011 at 8:57pm
closed account (zwA4jE8b)
when i use the following code

1
2
3
4
5
6
#using <mscorlib.dll>
#using <System.dll>

using namespace System;
using namespace System::Diagnostics;
using namespace System::Threading;


i get this error
managed targeted code requires a '/clr' option
May 11, 2011 at 9:54pm
closed account (zwA4jE8b)
my apologies, after google-ing for a bit, I found it.

Project -->Properties-->Configuration Properties-->General-->Common Language Runtime Support.
May 12, 2011 at 5:45pm
Project -> General -> Common Language Runtime Support and set to enabled (/clr switch)
Topic archived. No new replies allowed.