65,208
社区成员
发帖
与我相关
我的任务
分享
const unsigned char* pCUC = (const unsigned char*)strContent.c_str();
unsigned char* pUC = const_cast<unsigned char*> (pCUC);
FunctionUsePointerToUnsignedChar(pUC);
unsigned char* pUC = new unsigned char[strContent.size()+1];
strcpy(pUC,strContent.c_str());
// use the pUC here
delete [] pUC;