Forum Discussion
HKosova
Alumni
14 years agoHi Rebecca,
Just a quick idea. According to Microsoft KB article 244012 and this blog post by Eric Lippert from Microsoft, VBScript supports only VARIANT ByRef parameters. However, your component seems to be using ByRef BSTR, which isn't supported. This would explain why the parameter value isn't passed from VBScript into the component.
If I get it right, possible workarounds for the issue would involve changes in the component's source code:
- change the parameter type from BSTR * to VARIANT *, or
- create type-library-based IDispatch implementation that would transform ByRef VARIANTs pointing to strings into ByRef strings.
Hopefully, Support can shed more light on this though.
Just a quick idea. According to Microsoft KB article 244012 and this blog post by Eric Lippert from Microsoft, VBScript supports only VARIANT ByRef parameters. However, your component seems to be using ByRef BSTR, which isn't supported. This would explain why the parameter value isn't passed from VBScript into the component.
If I get it right, possible workarounds for the issue would involve changes in the component's source code:
- change the parameter type from BSTR * to VARIANT *, or
- create type-library-based IDispatch implementation that would transform ByRef VARIANTs pointing to strings into ByRef strings.
Hopefully, Support can shed more light on this though.