Return to Snippet

Revision: 13840
at May 7, 2009 15:29 by jimfred


Initial Code
static BOOL FileExists( LPCSTR arg )
{
   // Use FindFirstFile in WinBase.h to determine if a file exists.
   WIN32_FIND_DATA FindFileData;
   HANDLE hFind = FindFirstFile( arg, &FindFileData);
   return hFind != INVALID_HANDLE_VALUE;
}

Initial URL

                                

Initial Description
Simple non-dot.net function to determine if a file exists. Uses the WinBase API. Can be used with or without mfc.

Windows, non-dot.net, with or without MFC.

Initial Title
Simple non-dot.net function to determine if a file exists. Uses the WinBase API.

Initial Tags
windows

Initial Language
C++