How do I convert std::list<int> to COleSafeArray?

84 Views Asked by At

I have a std::list<int> listNumbers. I would like to pass this as a COleSafeArray to my C# DLL interface as a function parameter, so that the function in the DLL can work with this array of numbers.

How do I convert std::list<int> to COleSafeArray?

In the C# file, the function would be:

public void Foo(int[] listNumbers);
0

There are 0 best solutions below