转 http://blog.youkuaiyun.com/gaoxiaowei/article/details/5701789
从网上看来的说法:
The thing is that COM (actually the RPC runtime library, but it's easier to blame COM) has an additional requirement for [out] pointers. This requirement is that if the type of an [out] parameter isn't a scalar quantity (in other
words if it's a structure or anything more complicated than a int or float), then the memory pointed to by the [out] parameter needs to be allocated either by MIDL_user_allocate (for RPC) or(for
COM).
2173

被折叠的 条评论
为什么被折叠?



