Re: [python-win32] Problem on com server ony in a specifie application

2011-01-07 Thread Matteo Boscolo
After a lot of testing I find a solution that solve the problem . When I call my comInit method I need to accept a return type.. for c# : object o=obj.GetType().InvokeMember("comInit", BindingFlags.InvokeMethod, null, obj, objArgs); In This way, and modifying the comInit functi

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-07 Thread Tim Roberts
Matteo Boscolo wrote: > I made the following test: > I create a c# application that call the some method > //code > object obj = Activator.CreateInstance > (Type.GetTypeFromProgID("test.Application")); > object[] objArgs = new object[1]; > obj

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Matteo Boscolo
Hi all, I made the following test: I create a c# application that call the some method //code object obj = Activator.CreateInstance (Type.GetTypeFromProgID("test.Application")); object[] objArgs = new object[1]; objArgs[0] = "ciao";

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Matteo Boscolo
Il 06/01/2011 21:05, Tim Roberts ha scritto: Matteo Boscolo wrote: how can I understand how to fix this problem ? It's quite a strange behaviour, this is the method that fails, and it fails only if the argument is != None def comInit(self,obj=None): if obj==None:

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Tim Roberts
Matteo Boscolo wrote: > > how can I understand how to fix this problem ? > > It's quite a strange behaviour, > this is the method that fails, and it fails only if the argument is != None > > def comInit(self,obj=None): > if obj==None: > return "ss" + str(test1) >

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Matteo Boscolo
Il 06/01/2011 19:08, Tim Roberts ha scritto: Matteo Boscolo wrote: I can't find a solution at this little scripts. if you run the test.vbs the scripts work very well .. but if I try to get it work under a thinkdesign (A cad package) I got an error in the test.comInit method .. this is the error

Re: [python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Tim Roberts
Matteo Boscolo wrote: > I can't find a solution at this little scripts. > > if you run the test.vbs the scripts work very well .. > but if I try to get it work under a thinkdesign (A cad package) I got an > error in the test.comInit method .. > this is the error that the cad give to me : > Aut

[python-win32] Problem on com server ony in a specifie application

2011-01-06 Thread Matteo Boscolo
Hi List, this is my first post .. I can't find a solution at this little scripts. if you run the test.vbs the scripts work very well .. but if I try to get it work under a thinkdesign (A cad package) I got an error in the test.comInit method .. this is the error that the cad give to me : Aut