In a Microsoft article, I found this example:
using namespace System;
using namespace System::Diagnostics;
using namespace System::ComponentModel;
// Get all instances of Notepad running on the computer
Process* localByName = Process::GetProcessesByName(S"notepad");
Using VS2010 and C++ I would like to make a little app to run this code. In my attempt, it yielded the error that I must use /clr -- so I tried setting that, then it said it was incompatible with another setting, and so on, and so on. I'm an old VS 6.0 and MFC C++ programmer - but just starting in .NET and don't know what "managed code is", etc. Could someone give me a couple pointers on creating the world's simplest app that executes the code above?