title: in .Net 4: PInvokeStackImbalance Exception
body: <p>I was using the <code>strlen</code> function from <code>msvcrt.dll</code> in a .Net 3.5 project. More specifically:     </p>
  
  <p><code>private unsafe static extern int strlen( byte *pByte );</code></p>
  
  <p>After migrating to .NET 4.0, if I use this function it throws a <code>PInvokeStackImbalance</code> exception.</p>
  
  <p>How can I import the .NET 3.5 <code>msvcrt.dll</code> or fix this exception?</p>