This is belong to visual studio 2013 (v120). How to convert this in visual studio 2010(v100)?
struct {
bool operator()(const CString &a, const CString &b)
{
WIN32_FIND_DATA fa{0},fb{0};
HANDLE h;
h = FindFirstFile(a, &fa);
if (h != INVALID_HANDLE_VALUE) FindClose(h);
h = FindFirstFile(b, &fb);
if (h != INVALID_HANDLE_VALUE) FindClose(h);
return 1 == CompareFileTime(&fa.ftCreationTime, &fb.ftCreationTime);
}
} sortproc;
Two error: First : h = FindFirstFile(b, &fb); 13 IntelliSense: identifier "fb" is undefined c:\users\administrator\documents\visual studio 2010\projects\file cleaner\file cleaner\search.h 90 25 File Cleaner
Second: WIN32_FIND_DATA fa{0},fb{0}; 12 IntelliSense: expected a ';' c:\users\administrator\documents\visual studio 2010\projects\file cleaner\file cleaner\search.h 85 21 File Cleaner