Avatar of festijazz
festijazz

asked on 

[Help] Cannot retrieve a bstr* via com interface into a system.string in vb.net

Hello Everyone,

I am getting the following issue:
Cannot retrieve a bstr* via com interface into a system.string in vb.net

I tryed to use StringBuilder but then I get a compilation error.
I also did:  

Dim Str as String = nothing

myobj.getMessage(Str)
--> result: nothing

Is there an equivalent like in c# using [ref] - > myobj.getMessage(ref Str);  where this works as expected.

All inputs are welcome.
Thank you very much in advance.
Best regards
MiQi
Visual Basic.NET

Avatar of undefined
Last Comment
it_saige

8/22/2022 - Mon