Parameter type for complex object in COM visibility function (VB6)

Should we use object

or variant

? What's the difference?

0


a source to share


1 answer


If you are using Object, then clients must pass something that supports IUnknown

or IDispatch

- in short, the parameter must be an object. If you use variant, then clients can transfer whatever they want.



+4


a source







All Articles