Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们应该使用objectorvariant吗?它有什么区别?
object
variant
如果您使用 Object,则客户端必须传入支持的内容,IUnknown或者IDispatch- 简而言之,参数必须是一个对象。如果您使用 Variant,那么客户端可以传入任何内容。
IUnknown
IDispatch