Win32 COM: Passing NULL as a value
Mark Hammond
MarkH at ActiveState.com
Fri Feb 16 18:58:24 EST 2001
William Wicker wrote:
> I am trying to work via the COM interface to an object that exposes a
> method something like this:
>
> AnObject.DoSomething(doWhat, toWho)
>
> where toWho is either a dispatch pointer, or NULL, if toWho is not
> significant.
>
> When I try to do this with
>
> obj = win32com.client.Dispatch("AnObject")
> obj.DoSomething("kick", None)
None is used to pass a variant with VT_NULL. It works for every object I have come across, so I am afraid I have no idea.
Mark.
More information about the Python-list
mailing list