c++/cli enabled

closed account (zwA4jE8b)
Can anyone tell me how to enable CLI is VS2010. I cannot use the directive #using without doing that.
closed account (z05DSL3A)
What you are asking does not quite make sense, can you clarify? What are you trying to achieve?
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
closed account (zwA4jE8b)
my apologies, after google-ing for a bit, I found it.

Project -->Properties-->Configuration Properties-->General-->Common Language Runtime Support.
Project -> General -> Common Language Runtime Support and set to enabled (/clr switch)
Topic archived. No new replies allowed.