//将字符串指针ps1 和 ps2之间的内存拷贝出来 TCHAR* CopyResult(TCHAR* ps1,TCHAR* ps2) { int length = ps2 - ps1; TCHAR* pResult = new TCHAR[length + 1]; memcpy(pResult ,ps1 , length * sizeof(TCHAR)); pResult[length] = _T('\0');
return pResult; }