int byte2_to_byte4(char* src, char* des)    
{    
    if(NULL == src || NULL == des)    
        return -1;    
    int flag = 0;    
    int n = 0;    
    while(2 != flag)    
    {    
        *des = *src;    
        if(0 == *des)    
            flag ++;    
        else if(0 != flag)    
            flag = 0;    
        des++;    
        src++;    
        n++;    
        //注����小�嘶�����    
        if(0 == n%2)    
        {    
            *des++ = 0;    
            *des++ = 0;    
        }    
    }    
    return 0;    
}

�� �� daishu59 (daishu59) �拇������到: ��
: ����solaris平台��使��xerces-C++�����郑�xerces�远����XmlCh��双�纸�short,��
平台�系�wchar_t��4���纸诘�,����直���谩������char�幕�
:     XMLPlatformUtils::Initialize();
:     XMLCh nameStr[100]="abc";
: ...................

--
Happy XMLing


�� ��源:��水木���� http://newsmth.net��[FROM: 114.249.209.*]