Passing an array from managed code to unmanaged C++ ActiveX component
问题 In an earlier post Passing pointer from managed C++/CLI to ActiveX C++ component I've asked about the correct means to pass an array (whether managed or unmanaged array) to an activeX component created in native C++. The activeX method has the following signature: short Component::CopyToBuffer(short FAR* ptr) {} when the activeX is imported to be used in C++/CLI the method signature is displayed as short Component::CopyToBuffer(short% ptr) {} when imported in C# it is displayed as short