interop with windows script components

G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top