[Re-added the python-win32 list - please keep replies on list]
On 19/02/2011 12:51 AM, [email protected] wrote:
with None It dose not work ..
In what way doesn't it work? AFAIK, None is the closest thing Python has to Nothing - although you could try setting it to pythoncon.Empty
See the docs for nothing at http://msdn.microsoft.com/en-us/library/0x9tb07z.aspx
I need to create an empty ITDComponent I think ..
There isn't really any such thing... Cheers, Mark
regards, Matteo From: "Mark Hammond" [email protected] To: "Matteo Boscolo" [email protected] Cc: Date: Fri, 18 Feb 2011 17:09:50 +1100 Subject: Re: [python-win32] How to create a empty com object > On 18/02/2011 3:30 AM, Matteo Boscolo wrote: > > Hi all, > > I have a property that need an empty comobject > > > > |C++ definition: > > HRESULT activeComponent( > > [out, retval] ITDComponent** pVal) > > HRESULT activeComponent([in] ITDComponent* pVal)| > > > > how can I do it with python ?? > > In vb6 i use the following code: > > pComponent.Document.activeComponent = Nothing > > You might find setting it to None works... > > HTH, > > Mark
_______________________________________________ python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
