title: Marshalling int* to C#
body: <p>I've a function in C++ <code>void someFunc(char* arg1, int* arg2)</code> which I want to marshal the parameters as I use this function in C# (after importing the DLL)..</p>
  
  <p>Can you pls tell me how I should marshall as I'm confused here. </p>
  
  <pre><code>[DllImport(Dllname)]
  extern void someFunc([MarshallAsAttribute(UnmanagedType,LPStr)] string arg1, IntPtr arg2);
  </code></pre>
  
  <p>Should I use an IntPtr here? I cant pass the address of any int variable from C# so that it would land up in the pointer in C++?</p>