<div class="xam_msg_class">
<div style="font: normal undefined undefined; color:undefined;"><div class="xam_msg_class">
Ciao a tutti ,<div>e tutto il giorno che cerco di compialre un file .py con py2exe per ottenere una dll com..</div><div>da questo link</div><div><a href="http://www.py2exe.org/index.cgi/Py2exeAndWin32com" _djrealurl="http://www.py2exe.org/index.cgi/Py2exeAndWin32com">http://www.py2exe.org/index.cgi/Py2exeAndWin32com</a></div><div>che e' quello della documentazione di py2exe non si capisce tanto ..</div><div>ho provato anche con gli esempi forniti in ...Python26\Lib\site-packages\py2exe... ..ma nienete ..</div><div>Riesco a compilare la dll ma quando cerco di lincarla in vs dice che non e' una dll com &nbsp;....</div><div>so che questa non e' la mailing list di py2exe .. ma magari qualcuno di voi ha gia provato una tale pazia e magari piu fortunato o istruito di me ha generato una dll com che funziona ..</div><div>sono apprezzati anche suggerimenti in merito.</div><div>&nbsp;</div><div>Grazie</div><div>Matteo</div><div>&nbsp;</div><div>questo e' il codice che uso con py2exe:</div><div>&nbsp;</div><div><div>import pythoncom</div><div><br></div><div>class HelloWorld(object):</div><div>&nbsp;&nbsp; &nbsp;_reg_clsid_ = "{3CB05BFE-9660-4D65-A1F4-464FF17D2D11}"</div><div>&nbsp;&nbsp; &nbsp;_reg_desc_ = "Python Test COM Server"</div><div>&nbsp;&nbsp; &nbsp;_reg_progid_ = "Python.TestServer"</div><div>&nbsp;&nbsp; &nbsp;_public_methods_ = ['Hello']</div><div>&nbsp;&nbsp; &nbsp;def __init__(self):</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.softspace = 1</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.noCalls = 0</div><div><br></div><div>&nbsp;&nbsp; &nbsp;def Hello(self, who):</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.noCalls = self.noCalls + 1</div><div>&nbsp;&nbsp; &nbsp;<span class="Apple-style-span" style="font-size: 13.3333px; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;return "Hello" + " " * self.softspace + who</span></div></div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div>


</div>
</div>
</div>