_ttoi() family portable 32-bit and 64-bit



Hi,

Is there a more cute way to use the string conversion functions then
this :

CString szCategories;
....
#if defined(WIN64)
INT_PTR nCategories = _ttoi64(szCategories)
#else
int nCategories = _ttoi(szCategories)
#endif

Is there a function like this exist _ttoi_ptr() ?

Regards,
Eric

.