I hope someone can help me. I'm trying to get two string from my vector listOfFilesToCopy. The first forloop is to get my source path in a string. So I was trying to get the length of that and then I thought I would try to build my string but I'm not sure how. If anyone understand what I'm trying to do please help me.

void CVRUtilitiesApp::CopyFiles( vector<FileToCopy> &listOfFilesToCopy)
{

int bufferSrc = 0;
int bufferDst = 0;
for(int i=0; i<listOfFilesToCopy.size(); i++){
Path file = listOfFilesToCopy[i].GetSrc();
CString fileName = ToCString(file.GetPath());
long len = fileName.GetLength();
long finalLen = len + 1;
bufferSrc+= finalLen;
}

}

class FileToCopy
{
private:
File src;
File dst;

public:
FileToCopy( const File &src_, const File &dst_)
: src( src_), dst( dst_)
{
}
FileToCopy()
{
}

const File &GetSrc() const { return src; }
const File &GetDst() const { return dst; }

};