title: How to create and initialize SAFEARRAY of doubles in C++ to pass to C#
body: <p>My C# method needs to be invoked from C++</p>
  
  <p>Originally my C# method takes a parameter of type double[], but when calling from C++ it becomes a SAFEARRAY</p>
  
  <p>In C++ I need to take data from an array of doubles, and populate a SAFEARRAY.  I have not found any sample code to do this.</p>
  
  <p>Any help is appreciated</p>