|
-
May 28th, 1999, 02:19 PM
#1
Help ! Help!
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; }
};
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|