How can my C++/WinRT component pass a std::vector back to the caller?

1 · Raymond Chen · Nov. 30, 2021, 3 p.m.
The ReceiveArray pattern is the Windows Runtime pattern for how a function can return a C-style conformant array to its caller. In C++/WinRT, the projected version of the function is // [out] parameter void M(com_array<T>& value); // return value com_array<T> M(); The post How can my C++/WinRT component pass a <CODE>std::vector</CODE> back to the caller? appeared first on The Old New Thing....