title: C# Code in C++ Project
body: <p>I've read many solutions to the issue of using C# code in a C++ project, including this one: <a href="https://stackoverflow.com/questions/4183520/how-to-use-c-sharp-code-in-c-project">How to use c# code in C++ project</a></p>
  
  <p>I've also read <a href="https://stackoverflow.com/questions/778590/calling-c-sharp-code-from-c">this</a>, and one answerer says <em><code>Compile your C++ code with the /clr flag. With that, you can call into any .NET code with relative ease.</code></em></p>
  
  <p>Does this mean that I can use C++ &amp; C# code together, within the same project if I append the <em><code>/clr</code></em> flag?
  I'm a little confused by this, and it'll just waste time if I went the long route of converting the C# project that I'm trying to use parts of to C++, if doing so isn't actually needed.</p>
  
  <p>Basically, I answered my own question on a different topic a couple of days ago without realising that the actual code of the sample project is C#:
  <a href="https://stackoverflow.com/questions/22147611/obtaining-current-network-rate">Obtaining Current Network Rate</a></p>
  
  <p>Can anybody give me a firm clarification to whether I understand this correctly (that I can use C# code in a C++ project with no issues, apart from the <em><code>/clr</code></em> switch being required)?
  I'm not sure if SO is the right place to ask a question like this, so please tell me if it isn't instead of downvoting with no explanation.</p>
  
  <p>Thanks.</p>
  
  <p><strong><em>Edit</em></strong></p>
  
  <p>Forgot to mention that this is a C++/CLI gameserver application DLL on Windows. If it matters, it is used on only Windows Server 2008 R2 and Windows 7.</p>