Hi, Shri!
IronPython 2.0 supports dynamic COM servers. See
http://blogs.msdn.com/shrib/archive/2008/07/30/idispatch-support-on-in-ironpython-beta-4.aspx
Your blog is interesting.
But, your trick don't run with my COM servers (who have no TLB). These give
:
<Error getting traceback - cant import traceback>pythoncom error:
CPyFactory::CreateInstance failed to create instance. (80004005)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "mscorlib", line unknown, in CreateInstance
EnvironmentError: La création d'une instance du composant COM avec le CLSID
{EC501258-201C-449C-BE20-837A316EA382} à partir de IClassFactory a échoué en
raison de l'erreur suivante : 80004005.
For info, the COM server run OK on some customers' hundreds, with use from
Autoit, Excel(VBA), JScript, Python, etc.
Exemple (in Python):
pd = win32com.client.Dispatch('Ponxd.Mci')
pd.pversion()
Other info : Makepy (PythonWin/Pywin32) don't work with these COM servers
(still because no TLB...)
I remind that, on dynamic COM servers, functions/methods/properties can no
exist at opening, and can be created/changed after opening.
@-salutations
--
Michel Claveau
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com