阅读背景:

何时使用SafeArrayAccessData锁定SAFEARRAY

来源:互联网 

I'm having a question about when it is necessary to use SafeArrayAccessData to lock a SAFEARRAY, which is passed by managed code. Here is our code. The VARIANT is passed by managed code, with a string array. During code review, somebody suggest to use SafeArrayAccessData/SafeArrayUnAccessData. But he is not sure about why and what's the benefit. Can you share some of your experiences? Thanks!I'm having a question about when it is necessar




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: