Forum Discussion
- HKosovaSmartBear Alumni (Retired)
If it's a .NET, WPF, Silverlight or Java application, apply .OleValue to the string object:
str = obj.GetStringValue_1().OleValue
In other application types, VarToStr(obj) might work.
- fujunxuContributor
Thank your for your information. It is a C++ application. I got empty string when I used VarToStr(obj).
- HKosovaSmartBear Alumni (Retired)
It's hard to tell without seeing your application. Do you know how the method signature looks in the application code? There are some limitations on native method calls, for example, returning values via reference parameters is not supported.
If you got a valid object as a result, inspect it in the Ctrl+F12 window (make sure to turn on the Show hidden members option in Tools > Options > Engines > General). There might be a property or method to access individual characters/bytes of the string, or something similar.
Related Content
- 2 years ago
Recent Discussions
- 4 days ago
- 4 days ago