C++ char*作返回参数

char* fileName=new char[256];

GetOutFilePath(fileName,isMain);

delete[]fileName;


void CFFMPEGLib::GetOutFilePath(char* &filePath, bool isMain)
{
char fileName[256];
strcpy_s(filePath, 256,fileName);
}

猜你喜欢

转载自blog.csdn.net/xionglifei2014/article/details/80831705