joecre
December 2nd, 2004, 03:13 AM
Hi everybody, I have the following problem I'm trying to use from vbscript a method of a COM Server exe, this method returns byref two strings but unfortunately I'm not able to receive these strings.
Here you are the source code
<script language=vbscript>
Option Explicit
Dim myObj
Set myObj = CreateObject("MyCompLib.MyClass.1")
Dim bstrCatalog
Dim bstrSource
bstrCatalog = "CATALOG"
bstrSource = "SOURCE"
myObj.MyMethod1 CStr(bstrCatalog), CStr(bstrSource)
MsgBox bstrCatalog
Set myObj = Nothing
</script>
The method has the following signature
HRESULT MyMethod1([out] BSTR* bstrDataSource, [out] BSTR* bstrCatalog, [out, retval] long* nErrCode)
Can someone give me a little halp?
Thank you
Here you are the source code
<script language=vbscript>
Option Explicit
Dim myObj
Set myObj = CreateObject("MyCompLib.MyClass.1")
Dim bstrCatalog
Dim bstrSource
bstrCatalog = "CATALOG"
bstrSource = "SOURCE"
myObj.MyMethod1 CStr(bstrCatalog), CStr(bstrSource)
MsgBox bstrCatalog
Set myObj = Nothing
</script>
The method has the following signature
HRESULT MyMethod1([out] BSTR* bstrDataSource, [out] BSTR* bstrCatalog, [out, retval] long* nErrCode)
Can someone give me a little halp?
Thank you