If you define relative file name (not full path - for example, "name.txt" only) then it's not a Vista problem. At run-time the current directory is not the same as exe module directory so the program can't access external files via relative file names.
ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348
It appears as if you might have stumbled upon the virtualization feature of Windows Vista. Try looking it up on the MSDN.
mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395
Better use GetModuleFileName Windows API function to get exe module full path. In that case you can safely access all files placed in the same directory. It's a classical approach (a very elegant solution ;) )...
ArkM
Postaholic
2,001 posts since Jul 2008
Reputation Points: 1,234
Solved Threads: 348