hi,
        i'm wondering if Volker ever got this issue solved? i need to
do something similar. i'm trying to create a python COM server to 
implement the AsyncEvents interface for exchange. i found a vb 
sample in the exchange SDK that exposes

- IExStoreAsyncEvents_OnDelete
- IExStoreAsyncEvents_OnSave

this is what i'm trying to emulate in my python server. 
i guess i just don't understand how the vb (or my py) code 
gets wired together. i was thinking the makepy on the vb 
dll would help and i could implement that interface, 
but this doesn't seem correct. 

i think seeing how Volker implemented his solution may
help get me on my way.

thanks,

craig
======================================
Re: COM server implementing given Interface
by Volker Siepmann 
...
I don't want to extend an interface (so far I got it - I'm quite into
CORBA), 
but just implement a server for given interfaces, which inherit from 
IDispatch. If I write an ordinary server, the application doesn't accept
my 
object - missing implementation of (all) interfaces. In VB (nor my
subject, 
sorry, I'm a linux guy), they do it by writing

Implements TheInterfaceName
 ...
Private Function TheInterfaceName_TheMethodName(message As String) As
Boolean
 ...

Furthermore, I can find a line in the project file saying

Reference=*\G{12FB8542-7D64-11D2-A67D-00105A42887F}#0.9#0#TypeLibPath#Ty
peLibName

but that's all and it seems to work. All I need then is to tell python
to do 
the same thing: declare the interface somewhere, and specify the
TLB-file, 
where it came from.
I really hope, this is possible without that I have to read two American

books first (1552 pages)!!! But if it's like that, don't hesitate to
tell me.

Anyway, many thanks so far!!

  Volker Siepmann

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to