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
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
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";
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:
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)
>
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
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
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