SafeArraySamples by Giovanni Dicanio Mixed C++/C# project containing a native DLL that produces array data using safe arrays, that are consumed by a C# UI. More details on the techniques used in this code can be found in this MSDN Magazine article.