• Advertisement


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

Verifying a CString element as int?

This topic is 6041 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement