[python-win32] A shameless COM question

Marcus Low marcus at internetnowasp.net
Tue Apr 1 13:32:26 CEST 2008


Hi,

I am aggressively trying to try and use python for my team's sub commercial project. However we are using a com component and  i have the
example given in C#. It looks very simple to use and elegent in C# but i need to do the same in python (minus the GUI of course)

The C# example is : http://www.internetnow.com.my/download/marcus/Csharp.txt

I have generated from makepy the file : http://www.internetnow.com.my/download/marcus/from_genpy.txt


How do i even begin to use the same "event" notification in Pytonwin? I have resorted to ask this shameless question given that
my COM knowledge is kinda rusty and i could only go as far as  : 

 SmtpMail = win32com.client.Dispatch("WeOnlyDo.wodSmtpServerCom.1")      
 SmtpMail.Start()
 win32gui.PumpMessages()

Kindly advise dear Gurus.


Marcus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20080401/fb2fa983/attachment.htm 


More information about the python-win32 mailing list