如题

解决方案 »

  1.   

    _tcsupr函数  和_tcsdup#include <string.h>
    #include <stdio.h>void main( void )
    {
       char string[100] = "The String to End All Strings!";
       char *copy1, *copy2;
       copy1 = _strlwr( _strdup( string ) );
       copy2 = _strupr( _strdup( string ) );
       printf( "Mixed: %s\n", string );
       printf( "Lower: %s\n", copy1 );
       printf( "Upper: %s\n", copy2 );
    }Output
    Mixed: The String to End All Strings!
    Lower: the string to end all strings!
    Upper: THE STRING TO END ALL STRINGS!msdn上的例子
    不过这个例子不是UNICODE的例子
    你把响应的函数换成UNICODE的就可以了
      

  2.   

    char,TCHAR,UNICODE,建议你看看这方面的资料。
      

  3.   

    用循环,逐个字符_totupper/_tolower。这两个函数是针对TCHAR的。