Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: When you have a SAFEARRAY, you need to know what it is a SAFEARRAY *of*

$
0
0

@Anonymouse that would make it work but @SpecLad is correct CComSafeArray does *not* contain an "operator&"[*]. I think Raymond meant to use ".GetSafeArrayPtr()".

CComSafeArray leaves, in my opinion, much to be desired. For example the "GetAwesomeArray" method can't easily use a CComSafeArray internally due to locking (see my stackoverflow question[**] regarding this).

[*] CComSafeArray operators: msdn.microsoft.com/.../bac63k5t.aspx

[**] stackoverflow.com/.../3848


Viewing all articles
Browse latest Browse all 24428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>