Hi!
I have a windows script (MyComponent.wsc) registered as a COM component.
I'd like to call its methods with .NET.
Also after I have generated it's Type Library : MyComponent.tlb, I tried to
create the .NEt wrapper.
Unfortunatly TlbImp.exe fail to generate the wrapper and tell me (after
translation):
TlbImp error: System.TypeLoadException - Error: The signature contains an
invalid ELEMENT_TYPE_* (element type : 0x
Does anyone has done this operation before and/or to help me to solve this
one ?
I'm using .Net 1.1.
Thanks
Joël
Joël - 25 May 2005 13:51 GMT
Well I just solved this problem. Unfortunatly now I can't call my "Hello
world" method. .Net raise this exception:
System.InvalidCastException in mscorlib.dll
QueryInterface fail for MyComponentTLib.Automation interface.
The VBScript method called is really simple (it does nothing):
Sub HelloWorld()
End Sub
Any help is welcome.
Thanks
Joël
> Hi!
> I have a windows script (MyComponent.wsc) registered as a COM component.
[quoted text clipped - 12 lines]
>
> Joël