|
-
Dec 12th, 2000, 11:05 AM
#1
Thread Starter
Addicted Member
is there a way to pass the full path of a file returned by FindNextFile? Is it in the WIN32_FIND_DATA?
-
Dec 12th, 2000, 03:08 PM
#2
Member
Code:
typedef struct _WIN32_FIND_DATA {
DWORD dwFileAttributes;
FILETIME ftCreationTime;
FILETIME ftLastAccessTime;
FILETIME ftLastWriteTime;
DWORD nFileSizeHigh;
DWORD nFileSizeLow;
DWORD dwReserved0;
DWORD dwReserved1;
TCHAR cFileName[ MAX_PATH ];
TCHAR cAlternateFileName[ 14 ];
} WIN32_FIND_DATA, *PWIN32_FIND_DATA;
it should be
Code:
DeleteFile(NAME_OF_VARIABLE.cFileName);
or
DeleteFile(NAME_OF_VARIABLE->cFileName);
I can't remember which it is...
-
Dec 13th, 2000, 11:42 AM
#3
Thread Starter
Addicted Member
Thanks Dennis
Thanks Dennis, btw its .cFilename not ->, isn't -> only for mfc apps?
-
Dec 15th, 2000, 08:09 AM
#4
I have no clue... I haven't done much API in C++,
Anyway,
Glad I was of help to ya 
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
|