(C++) WideToIntFebruary 24, 2017 · View on GitHub (C++) WideToInt WideToInt is a convert code snippet to convert WideString to integer. ///WideToInt converts WideString to integer ///From http://www.richelbilderbeek.nl/CppWideToInt.htm int WideToInt(const WideString& s) { const AnsiString a(s); return a.ToInt(); }