WxUtils: add WxStrToUL

This commit is contained in:
Michael M
2017-08-02 16:45:18 -07:00
parent 7d509a7a94
commit 9867677211
2 changed files with 8 additions and 0 deletions

View File

@ -531,3 +531,10 @@ wxString StrToWxStr(const std::string& str)
// return wxString::FromUTF8Unchecked(str.c_str());
return wxString::FromUTF8(str.c_str());
}
unsigned long WxStrToUL(const wxString& str)
{
unsigned long value = 0;
str.ToULong(&value);
return value;
}