Re: one method of COM object needs a variant type variable
Thanks Gabriel, I seen this before, but I don't know, what's mean 'compatible object'. I need create object who will like as an variant type. Je. it looks lieke this: ... obj=win32com.client.Dispatch('Geomedia.PointGeometry') #geometry object gss=win32com.client.Dispatch('Geomedia.GeometryStorageService')#geometry strorage object gss.GeometryToStorage(obj, out) #out must be a variant type variable . oRS.Fields(Geometry).Value = out # writing blob into recordset via ADO En Thu, 06 Aug 2009 09:37:55 -0300, MICHÁLEK Jan Mgr. Michalek.Jan at uhul.cz http://mail.python.org/mailman/listinfo/python-list escribió: How i can use this type in win32.com? One method of com object (geomedia storage service) needs this variable for storage geometry of geometry object (this variable will be writen into blob in DB). Is possible make this variable in py?? Any compatible object may be used on the Python side, the pywin32 library manages the conversion automatically. See http://docs.activestate.com/activepython/2.4/pywin32/html/com/win32com/HTML/PythonCOM.html -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list
Re: one method of COM object needs a variant type variable
En Fri, 07 Aug 2009 04:21:03 -0300, MICHÁLEK Jan Mgr. michalek@uhul.cz escribió: Thanks Gabriel, I seen this before, but I don't know, what's mean 'compatible object'. I need create object who will like as an variant type. A variant is like a giant union contaning almost every basic type. See http://msdn.microsoft.com/en-us/library/ms221627.aspx A variant can hold simple Python objects as integer, float, string... but not complex ones as, say, DocXMLRPCServer. The conversion to/from variant types is done automatically. I think you'll get more help in the python-wi...@python.org list. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list
Re: one method of COM object needs a variant type variable
En Thu, 06 Aug 2009 09:37:55 -0300, MICHÁLEK Jan Mgr. michalek@uhul.cz escribió: How i can use this type in win32.com? One method of com object (geomedia storage service) needs this variable for storage geometry of geometry object (this variable will be writen into blob in DB). Is possible make this variable in py?? Any compatible object may be used on the Python side, the pywin32 library manages the conversion automatically. See http://docs.activestate.com/activepython/2.4/pywin32/html/com/win32com/HTML/PythonCOM.html -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list