Python COM Object Return Values in Delphi

matthias.horst at ruhr-uni-bochum.de matthias.horst at ruhr-uni-bochum.de
Mon Feb 12 09:50:12 EST 2001


God's blessing for anybody who can help me with the following problem:

I have written a Com server object in Python 2.0 similar to that (this
is not the problem)

class testClass:

    _public_methods_ = ['daddel']
    _reg_progid_ = "somthing"
    _reg_clsid_ = "{....}"

    def daddel(self):
        return ("hello",1)


if __name__=='__main__':
    import win32com.server.register
    win32com.server.register.UseCommandLine(testClass)

Does anybody know how I can access the return value of method daddel?
For a simple string or integer it's clear :

procedure callIt;
var obj:variant;
    dummy:string;
begin
   obj=createOleObject("putInHereTheName")
   dummy=obj.callHereTheMethod;
end;

But for a complex tupple...?!?!?

Thanks in advance.


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list