佚名通过本文主要向大家介绍了
如果定义_RecordsetPtrpRecordset,如何把pRecordset转换成IDispatch类型的?等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: 如果定义_RecordsetPtr pRecordset,如何把pRecordset转换成 IDispatch类型的?
描述:
解决方案1:
描述:
因为我现在调用一个COM接口,调用方法里有个参数类型是IDispatch**,但是该参数是用来接收一个ADO 的一个Recordset记录,如何把_RecordsetPtr转换成IDispatch**,我用(IDispatch**)(&pRecordset)强制转化不行,该怎么办?谢谢!
解决方案1:
QueryInterface罗