First a bit of background. I'm creating a Borland Delphi class for compiling and running ActiveScript-compatible script code from inside a Delphi program. So far this has worked great. What I'm trying to do is create a Delphi class, that supports the IDispatch (automation) interface, create a Python function that accepts a parameter, then call that Python function from inside my Delphi program, passing an instance of my Delphi class down as the parameter. Then, inside the Python function, I call methods on my Delphi class through the IDispatch interface. It works for reading properties (attributes in Pythonspeak), writing properties and calling methods that takes no parameters. However, methods with parameters generates ole errors (0x80020101 specifically). If I simply switch script language to VBScript it works flawlessly, but in Python it crashes. Are there any hints as to what I might be doing wrong? Code is available upon request but I didn't want to post any binaries to this list. The Delphi component will be made freely available on the web as soon as I have ironed out all the bugs (like this one) so please help me help other Delphi programmers start using Python. Lasse -- Lasse Vågsæther Karlsen Cintra Software Engineering AS +47 35.51.61.03 Office / +47 35.51.61.11 Office fax +47 90.86.82.73 Cellular +47 35.55.83.63 Home / +47 35.55.83.64 Home fax PGP Key: 0x8BF38D66 (ldap://certserver.pgp.com) _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/activepython
