title: Pass struct* from c# to c++ dll
body: <p>The struct in c++ dll is defined like this:</p>
  
  <pre><code>struct WAVE_INFO {
      int channel_num;
      int audio_type;
      char *wave_data;
      int wave_length;
  };
  </code></pre>
  
  <p>And the calling method like this:</p>
  
  <pre><code>extern "C" STRUCTDLL_API int processStruct(WAVE_INFO *pIn, WAVE_INFO *pOut);
  </code></pre>
  
  <p>The <strong>wave_data</strong> in my c# struct has to be <strong>byte array (byte[])****, not char[] or string</strong>. How should I defind the struct and the method in c# where the dll is called? And the length of wave_date is fixed, let's say like 100.</p>