title: How to use variant arrays in Delphi
body: <p>I have two Delphi7 programs: a COM automation server (EXE) and the other program which is using the automation server.</p>
  
  <p>I need to pass an array of bytes from one program to the other.</p>
  
  <p>After some searching I've found that using variant arrays is the way to go (correct me please if you know any better methods).</p>
  
  <p>My question is:
  How do I create a variant array in one program, and then how do I read its values in the other?</p>
  
  <p>I know about VarArrayCreate and VarArrayLowBound/VarArrayHighBound, but I'm unsure on how to do this properly.</p>
  
  <p>Thanks!</p>