Is Short (big S) a typedef for something, or did you mean short?
- acraig5075
1 Answers
2
votes
Try this:
CString str;
Short sdata;
_stscanf(str, _T("%d"), &sdata);
Or
sdata = _ttoi(str);
sdata = _wtoi(str);
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
CString) to integer conversion functions? - Some programmer dudeShort(big S) a typedef for something, or did you meanshort? - acraig5075