View Single Post
  #2  
Old 01-26-2005, 03:24 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,027
Just to verify, you're using the VisBuildPro Project action and it's failing with the message "Project file '<filename>' not found"?

The logic for that code is essentially:

bool FileExists(LPCTSTR filename)
{
DWORD attr = GetFileAttributes(filename);
return attr != INVALID_FILE_ATTRIBUTES && !(attr & FILE_ATTRIBUTE_DIRECTORY);
}

if (!FileExists(projfile))
{
// show error message and fail the step
}

Are you able to create a test app to see what GetFileAttributes returns for this file? Thanks.
Reply With Quote