Hehehe... I tend to not edited out any valuable data, but since it's a Windows-only library with a hacked interface and temporary files and a ever-growing, maturing private library, it's better to not distribute it more than necessary.
I didn't enough out all that was written in the thread; just edited out the post with the actual links and all that and replaced with "experiment failed" so as to not mess up the discussion in the thread.
[edit] What did I actually do to the library? I actually just added a helper interface or an interface to help bridge the gap to MFC:
Code:
std::vector<string>* FindFilesHelper(const string& strFolder, bool bSearchSubFolders,
const string& strPattern, UINT64* p_nCurrentFile, /*CString* p_strCurrentFile, */
bool bThread, bool* pThreadFinished, bool* pCancel)
{
pp< vector<CString> > pVector = FindFiles(strFolder.c_str(), bSearchSubFolders,
strPattern.c_str(), p_nCurrentFile, NULL, bThread, pThreadFinished, pCancel);
//vector<CString>* pRawVector = pVector.Detach();
vector<string>* pReturnVector = new vector<string>;
for (UINT i = 0; i < pVector->size(); i++)
pReturnVector->push_back( (const TCHAR*)pVector->at(i) );
return pReturnVector;
}
While the original function's prototype is:
Code:
pp< vector<CString> > FindFiles(const CString& strFolder, bool bSearchSubFolders,
const CString& strPattern, UINT64* pnCurrentFile, CString* pCurrentFile, bool bThread,
bool* pThreadFinished, bool* pCancel, pp< vector<CString> > pBuffer)
[/edit]