Hallo, ich hab irgendwie Probleme mit SHFileOperation? Findet zufällig jemand den Fehler? Danke schon mal. Gruß Tobias
char pszFrom[MAX\_PATH];
char pszTo[MAX\_PATH];
SHFILEOPSTRUCT structMove;
structMove.hwnd = this-\>m\_hWnd;
structMove.fFlags = 0;
structMove.fAnyOperationsAborted = 0;
structMove.wFunc = FO\_MOVE;
sprintf(pszFrom, "%s", "C:\\temp\\test.txt");
structMove.pFrom = pszFrom;
sprintf(pszTo, "%s", "C:\\temp\\testkopie.txt");
structMove.pTo = pszTo;
if(SHFileOperation(&structMove)==0)
{
AfxMessageBox("SUCCESS");
}
else
{
AfxMessageBox("FAILURE");
}