Passing Array of string from C# application to C++ DLL
<pre><code>string []URL = {"www.facebook.com","www.orkut.com","www.yahoo.com"};
            Int32 result = URL.Length;
            SetPolicyURL( URL,result );
</code></pre>

<p>this is my C# code where i am trying to pass the array of string to C++ Dll which is imported like this</p>

<pre><code>     [PreserveSig]
    [DllImport("PawCtrl.dll", SetLastError = true, CharSet = CharSet.Auto,  CallingConvention = CallingConvention.StdCall)]
    public static extern void SetPolicyURL( string []policy, Int32 noURL);
</code></pre>

<p>but i am not able to receive it in my c++ DLL .</p>

<pre><code> PAWCTRL_API void __stdcall SetPolicyURL( char ** URLpolicy, __int32 noURL)
 {

for ( int i = 0; i &lt; noURL; i++)
     {

    URLvector.push_back(URLpolicy[i]);
  }
 }
</code></pre>

<p>Please can any one help me how i should pass the function</p>

<p>thanks InAdvance</p>
