Click to See Complete Forum and Search --> : Problem with string


torrebruno25
June 20th, 2001, 09:41 AM
Hi All.

I´ve create a dual interface in VC++ with this method "void SegundoError([out] BSTR my_string)" in the events interface and with its corresponding Fire in the CProxi class. In VB I´ve capture this event: "MiInterface.SegundoError(ByVal string_from_VC As String" and the problem is that "string_from_VC" arrives empty. Cuold tell me someone what I´m doing wrong?

Thanks

Clearcode
June 20th, 2001, 09:44 AM
Drop the ByVal, as if not VB tries to do a conversion from a null terminated CStr at that address.

HTH,
D.

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com