转:MFC 的程序中GetAt()的理解

BYTE 是 1字节长度 的  整型, int 是 4 字节长度 的  整型。
 CString::GetAt(0); 就是把 一个 CString 对象里 的字符串 中的第一个字符,把它的ASCII 值 送返回来。
例如:
BYTE temp;
CString m_str( "abcdef" );    // CString 对象里 的字符串 是 "abcdef"
temp = m_str.GetAt(2);    // 这里取出字符串 中的第二个字符(编号从 0起)
temp 里的值现在 是 'c'  ( 注意带单引号),或 10 进制 99 (字母c 的ASCII 值)。
 
temp = m_str.GetAt(0);   // 取出字符串 中的第0个字符 'a'
 
m_str.GetAt(0);  // 取出m_str CString 对象里 的字符串 中的第0个字符。
this-> // 当前 class 的对象 里的 。。。
原文地址:https://www.cnblogs.com/yfz0/p/5257862.html