Hi Mark,
"Mark Hammond" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Glad you spotted that - if you feel there is something I could add to the
> docs or examples to make that error less likely in the future, please let
> me
> know.
For me a well written example with sufficient documentation works best.
Originally, I have had a bad time because our CADdy COM server has had a
intrinsically implementation error. After removing that I made good
progress.
What is really important for me, is that the examples are correct and state
of the art.
However, I'm unable to make a judgement for the given ones.
>> Two questions remains:
>> 1.) The following code line seems to be unnecessary. The
>> AddIn sever works
>> without it as well. What is
>> the idea for this line? Do I need it?
>> universal.RegisterInterfaces('{9C3BB401-114D-11D4-AC72-00105A4
>> 925FC}', 0, 1,
>> 2, ['ICADdyAddIn'])
>
> You will (probably!) find that line is needed when makepy has not been run
> over the module (ie, delete your win32com\gen_py directory and try again).
> It is similar to a gencache.EnsureModule call. Please try it and let me
> know if that is not true :)
I do not have any problem with removing the cache directory. But I always
run the
gencache.EnsureModule('{9C3BB401-114D-11D4-AC72-00105A4925FC}', 0, 1, 2,
bForDemand=True) # CADdy.tlb
statement to ensure at runtime the existence of the typelibrary wrapper
modules. Actually, I won't run makepy.py at all.
Thank you very much
Johannes
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32