<p>Does any one know how can I convert a BSTR to an int in VC++ 2008</p>

<p>Thanks in advance.</p>

Google suggests
```
VarI4FromStr
```
:
```
```
HRESULT VarI4FromStr(
  _In_   LPCOLESTR strIn,
  _In_   LCID lcid,
  _In_   ULONG dwFlags,
  _Out_  LONG *plOut
);
```
```