strText.MakeUpper();intnLen = strText.GetLength();if( nLen <=0)returnFALSE; CString rString;intnPos = nStart;for(inti=0; i<GetCount(); i++ ) {if( nPos == GetCount() || nPos <0) nPos =0; GetText( nPos, rString ); rString.MakeUpper();intnIndex = rString.Find('(');if...
CString::MakeUpper void MakeUpper( ); Remarks 备注Converts this CString object to an uppercase string. 将原对象的所有小写英文字母转换为大写。(只是将小写的英文字母转换为大写,对于其它的字符不做变化,例如:大写字符,数字,汉字) Example实例 The following example demonstrates the use of CString::MakeUpper....
在开发的一个工程中,需要判断文件真实类型,方式是读取文件开头的255字节,然后转换成大写再判断是否有特定字符,程序在VC6下没问题,但是boss要的是64位程序,因此转到VS2010下编译,程序编译没问题,但是在读一些二进制文件时会出现“遇到不适当的参数”的提示,跟进去发现是CString的MakeUpper函数报错。个人理解应该是VS2010...
CString 使用详解 CString::MakeUpper void MakeUpper( ); Remarks 备注Converts this CString object to an uppercase string. 将原对象的所有小写英文字母转换为大写。(只是将小写的英文字母转换为大写,对于其它的字符不做变化,例如:大写字符,数字,汉字) Example实例 The following example demonstrates the use of C...
CString::MakeUpper void MakeUpper( ); Remarks 备注Converts this CString object to an uppercase string. 将原对象的所有小写英文字母转换为大写。(只是将小写的英文字母转换为大写,对于其它的字符不做变化,例如:大写字符,数字,汉字) Example实例 The following example demonstrates the use of CString::MakeUpper...
CString::MakeUpper void MakeUpper( ); 改变字符的大写 CString::Mid CString Mid( int nFirst ) const; CString Mid( int nFirst, int nCount ) const; nCount代表要提取的字符数, nFirst代表要提取的开始索引位置 例子 CString s( _T("abcdef") ); ASSERT( s.Mid( 2, 3 ) == _T("cde") )...
3、void MakeUpper( ); void MakeLower( );将小写字母转换为大写字母; 将大写字母转换为小写字母; 4、int Compare( LPCTSTR lpsz ) const;\\ 区分大小写比较两个字符串,相等时返回0,大于时返回1,小于时返回-1 int CompareNoCase( LPCTSTR lpsz ) const;\\不区分大小写比较两个字符串,相等时返回0,大于时...
CString& MakeUpper(); 1. 将字符串中的所有小写字符转换为大写字符。 CString& MakeReverse(); 1. 将字符串中所有字符的顺序颠倒。 例如: CString str(_T("JiZhuoMi")); str.MakeLower(); // str为"jizhuomi" str.MakeUpper(); // str为"JIZHUOMI" ...
MakeUpper 将字符串中的所有字符转换为大写字符 MakeLower 将字符串中的所有字符转换为小写字符 MakeReverse 将字符串中的字符以倒序排列 Replace 用其它字符替换指定的字符 Remove 从一个字符串中移走指定的字符 Insert 在字符串中的给定索引处插入一个字符或一个子字符串 Delete 从一个字符串中删除一个或多个字符...
CString::MakeUpper void MakeUpper( ); Remarks 备注Converts this CString object to an uppercase string. 将原对象的所有小写英文字母转换为大写。(只是将小写的英文字母转换为大写,对于其它的字符不做变化,例如:大写字符,数字,汉字) Example实例 The following example demonstrates the use of CString::MakeUpper...