I have a variant that contains a BSTR, but sometimes the BSTR is "" (empty), so how to avoid this? I have tried something like:
variant.bstrVal != NULL
But it didn't work.
Use SysStringLen
:
if (SysStringLen(variant.bstrVal) == 0)
{ ... }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With