How to return VT_EMPTY from a COM server

Mark Hammond mhammond at skippinet.com.au
Tue Oct 8 08:13:16 EDT 2002


Juan Carlos CORUÑA wrote:
> Hello all,
> 
> To  resolve a problem I had with a COM server I developed, I have
> reached to the following conclusion: I must return the variant
> VT_EMPTY from a method of the COM server. As exposed in the book
> "Python Programming on win32" pythoncom can translate between them
> seamlessly. The variant types VT_NULL and VT_EMPTY are translated to
> python None, but the inverse only works from None to VT_NULL.
> 
> Then the questions is: How can I return VT_EMPTY (not VT_NULL)?

You can't I'm afraid :(  It wouldn't be too hard to fix if you are so 
motivated - mail me if you are interested.

Mark.




More information about the Python-list mailing list