3 ms·
"Why not just pass an array of arguments?" Speed and convenience, I'd imagine? IIRC, arrays are marshalled as SAFEARRAYs in COM and those things are quite heav
by Joker_vD 5y ago
"Why not just pass an array of arguments?"
Speed and convenience, I'd imagine? IIRC, arrays are marshalled as SAFEARRAYs in COM and those things are quite heavy-weight, you'd really rather call a 31-parameter function and pass it 27 NULLs in places of extraneous parameters.
- mixtur2021 5y agoOnly if using safe-for-scripting/Ole Automation types/interfaces in your IDL. Otherwise, it's fully possible to pass C-style arrays in COM.