title: Error when trying to replace an UNC path by a string
body: <p>Sorry for some maybe very basic questions. I simply wanted to replace the UNC path by a string. These lines with the UNC path for a C++ connection perfectly works:</p>
  
  <pre><code>[DllImport(C:\\Users\\SJ\\Documents\\VS2015\\Projects\\P_01\\Debug\\EV_01.dll",
  EntryPoint = "DDentry", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
  public static extern void DDentry
  (
     [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_BSTR)]
      string[,] pArrayStr
  );
  </code></pre>
  
  <p>Replacing the UNC path by a string gives an error "An object reference is required for the non-static field, method, or property"</p>
  
  <pre><code>string UNCpath = @"C:\\Users\\SJ\\Documents\\VS2015\\Projects\\P_01\\Debug\\EV_01.dll";
  
  [DllImport(UNCpath,
  EntryPoint = "DDentry", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
  public static extern void DDentry
  (
     [MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_BSTR)]
      string[,] pArrayStr
  );
  </code></pre>
  
  <p>Many thank for your ideas ..</p>