<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">


<META content="MSHTML 6.00.2900.5764" name=GENERATOR></HEAD>
<BODY>
<DIV><PRE><SPAN class=980581207-07082009>Thanks Gabriel,</SPAN></PRE><PRE><SPAN class=980581207-07082009>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.</SPAN></PRE><PRE><SPAN class=980581207-07082009>Je.</SPAN></PRE><PRE><SPAN class=980581207-07082009>it looks lieke this:</SPAN></PRE><PRE><SPAN class=980581207-07082009>...</SPAN></PRE><PRE><SPAN class=980581207-07082009>obj=win32com.client.Dispatch('Geomedia.PointGeometry') #geometry object</SPAN></PRE><PRE><SPAN class=980581207-07082009>gss=win32com.client.Dispatch('Geomedia.GeometryStorageService')#geometry strorage object</SPAN></PRE><PRE><SPAN class=980581207-07082009>....</SPAN></PRE><PRE><SPAN class=980581207-07082009>gss.GeometryToStorage(obj, out) #out must be a variant type variable</SPAN></PRE><PRE><SPAN class=980581207-07082009>.....</SPAN></PRE><PRE><SPAN class=980581207-07082009>oRS.Fields("Geometry").Value = out # writing blob into recordset via ADO</SPAN></PRE><PRE><SPAN class=980581207-07082009></SPAN> </PRE><PRE> </PRE><PRE>En Thu, 06 Aug 2009 09:37:55 -0300, MICHÁLEK Jan Mgr.  
<<A href="http://mail.python.org/mailman/listinfo/python-list">Michalek.Jan at uhul.cz</A>> escribió:

><I> How i can use this type in win32.com? One method of com object (geomedia  
</I>><I> storage service) needs this variable for storage geometry of geometry  
</I>><I> object (this variable will be writen into blob in DB). Is possible make  
</I>><I> this variable in py??
</I>
Any compatible object may be used on the Python side, the pywin32 library  
manages the conversion automatically.

See  
<A href="http://docs.activestate.com/activepython/2.4/pywin32/html/com/win32com/HTML/PythonCOM.html">http://docs.activestate.com/activepython/2.4/pywin32/html/com/win32com/HTML/PythonCOM.html</A>

-- 
Gabriel Genellina
</PRE></DIV> <BR><BR>__________ Informace od ESET NOD32 Antivirus, verze databaze 4313 (20090806) __________<BR><BR>Tuto zpravu proveril ESET NOD32 Antivirus.<BR><BR><A HREF="http://www.eset.cz">http://www.eset.cz</A><BR> </BODY></HTML>