Archived

This topic is now archived and is closed to further replies.

Zeke

Verifying a CString element as int?

Recommended Posts

I have a CString that is formatted like this: CharacterName_NumDirections_NumPoses for example take Mario who has 4 directions and 6 poses that can be displayed: Mario_04_06 I need to find out whether the values for NumDirections and NumPoses are integers. So i have a function that takes in a CString and I want it to return true if that CString is Mario_04_06 and false if the cstring is Mario_LF_GG or something. I can test for the character ''_'' however the CharacterName might be Mario_Evil_WolfForm_04_06 or something. So my question is how can my program differentiate between Mario_04_06 and Mario_LF_fD? Thanks for any help

Share this post


Link to post
Share on other sites