VBS gets empty string
From: Eran (even_e_at_netvision.net.il)
Date: 07/28/04
- Next message: Igor Tandetnik: "Re: programmatically change security in IE?"
- Previous message: languy: "Re: Weird 0x80010105 error"
- Next in thread: Alexander Nickolov: "Re: VBS gets empty string"
- Reply: Alexander Nickolov: "Re: VBS gets empty string"
- Reply: Kim Gräsman: "Re: VBS gets empty string"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 28 Jul 2004 16:10:22 +0300
Hi,
I need help for the following issue. I have a COM server in C++ and client
in VBS. in some reason, the VBS gets empty string from COM.
the implemintation is as follows:
[COM]
[id(4), helpstring("method RetString")] HRESULT ReturnString([out] BSTR
*RetString);
STDMETHODIMP CETS_Interface::ReturnString(BSTR *RetString)
{
char MyString[10] = "temp";
*RetString = A2BSTR(MyString);
return (*RetString != NULL) ? S_OK : E_OUTOFMEMORY;
}
[VBS]
' ETS_Interface of "ETS.ETS_Interface.1"
' ETS_Interface Class
Set objETS_Interface = CreateObject("ETS.ETS_Interface")
Dim mystring
objETS_Interface.RetString(mystring)
MsgBox(mystring) ' in some reason, I mystring is empty here.
- Next message: Igor Tandetnik: "Re: programmatically change security in IE?"
- Previous message: languy: "Re: Weird 0x80010105 error"
- Next in thread: Alexander Nickolov: "Re: VBS gets empty string"
- Reply: Alexander Nickolov: "Re: VBS gets empty string"
- Reply: Kim Gräsman: "Re: VBS gets empty string"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|