佚名通过本文主要向大家介绍了allocsysstring,com surrogate进程,进程com.android,抱歉进程com.android,进程外com服务器等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: AllocSysString是给谁用的? 给进程外的com传递字符串?
描述:
解决方案1:
描述:
还有其他的用场么?
thanks!!!!!
解决方案1:
谁用都可以,关键是谁来负责释放的问题。
另外,还有一点,如果COM要传出字符串,那几乎是只能使用AllocSysString了。
当然,你给COM传一个字节串,用AllocSysString也不是不可,但没多大必要(这还会带来到底由谁释放的问题)。
Commonly, if this string is passed to a COM function as an [in] parameter, then this requires the caller to free the string.
应该是让com调用的