Does any one know how can I convert a BSTR to an int in VC++ 2008
Thanks in advance.
You can pass a BSTR safely to any function expecting a wchar_t *
. So you can use _wtoi().
Google suggests VarI4FromStr
:
HRESULT VarI4FromStr(
_In_ LPCOLESTR strIn,
_In_ LCID lcid,
_In_ ULONG dwFlags,
_Out_ LONG *plOut
);
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