Compiler 時會發生
[bcc32 Error] System.ZLib.hpp(303): E2040 Declaration terminated incorrectly
請將下面兩個 .hpp 方到 .h 的最上方
#include <Vcl.Graphics.hpp>
#include <Vcl.Imaging.pngimage.hpp>
SHFILEOPSTRUCT so;
WCHAR wFileName[512];
wmemset( wFileName, 0, 512);
wmemcpy( wFileName, L"D:\\201505111024.data", 19);
memset( &so, 0, sizeof(SHFILEOPSTRUCT));
so.wFunc = FO_DELETE;
so.fFlags = FOF_ALLOWUNDO; // | FOF_NOCONFIRMATION;
so.pFrom = wFileName;
so.fAnyOperationsAborted = true;
int nCode = ::SHFileOperation( &so);