Results 1 to 4 of 4

Thread: Passing to DeleteFile

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217
    is there a way to pass the full path of a file returned by FindNextFile? Is it in the WIN32_FIND_DATA?
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  2. #2
    Member Benjamin's Avatar
    Join Date
    Nov 2000
    Posts
    48
    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...
    -Dennis
    [email protected]
    Ever stop to think, and forget to start again?


    The end justifies the means
    http://www.cfm-resources.com/d/dewrenn
    http://www.phpsquare.com

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Columbus Ohio
    Posts
    217

    Thanks Dennis

    Thanks Dennis, btw its .cFilename not ->, isn't -> only for mfc apps?
    Chris

    [email protected]
    Windows XP RC2 B2526
    Visual Studio.Net Beta 2
    C++, VB, VB.Net, ASP, PHP

  4. #4
    Guest
    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
  •  



Click Here to Expand Forum to Full Width