|
-
November 3rd, 2002, 09:07 PM
#3
A way for deleting files
You have this win32 API
BOOL DeleteFile(
LPCTSTR lpFileName // pointer to name of file to delete
);
You have a method for selecting a file:
BOOL GetOpenFileName(
LPOPENFILENAME lpofn // address of struct with initialization data
);
This creates a Open file dialog that returns the name of
selected file. You can customize the properties of dialog
box with the structure OPENFILENAME, i.e.: a dialog box
with a title "SELECT FILE TO DELETE" and a filter *.* for
all the files.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|