I'm fairly new to C++, converting from VB. In VB I've used the Shell Object to move, copy and delete folders. I've done some searching on the site, and have come across this sample code listed below. Being a newbie, I cannot get my app to compile, I get the following error: 'SHFILEOPSTRUCT' : undeclared identifier
I must be missing a header or lib. Anyone?
int CopyFolder(LPCTSTR lpExistingFolderName, LPCTSTR lpNewFolderName)
ZeroMemory ( &sfo, sizeof ( SHFILEOPSTRUCT));
sfo.pFrom = lpExistingFolderName;
sfo.pTo = lpNewFolderName;
sfo.fFlags = FOF_FILESONLY | FOF_NOCONFIRMATION | FOF_SILENT;
int i = SHFileOperation ( &sfo);