|
-
August 22nd, 2008, 03:11 AM
#1
Convert char in CString to ASCII
I have this code:
Code:
for (int i = 0; i < iBaseCharsLength; i++)
{
//int iInt = (int)csBaseChars[i];
//iIndex[i] = iInt;
//int iInt2 = (int)csEndChars[i];
//iEnd[i] = iInt2;
}
I commented out the lines because they cause an "ASSERTION FAILED" error,
that's probably because I'm treating csBaseChars as an array, but what I really want to do is get the ASCII value for each char in csBaseChars, and csEndChars, I thought of using csBaseChars.Mid(0, 1), but it won't let me cast it as an int.
Can anyone tell me how to do this?
Cheers
Icyculyr
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|