The following example is executed for _stat from MSDN , compiled using Visual C ++ 2015 Express using v140_xp , since the Platform Toolset (target Win32) works fine on Windows 7, but not on Windows XP on several machines we tested.
Windows 7 Output:
File size : 6 Drive : D: Time modified : Tue Sep 8 10:06:57 2015
Windows XP Output:
Problem getting information: Invalid argument Invalid parameter to _stat.
And yes crt_stat.c is in the executable directory, which is also CWD.
Is this a mistake or am I missing something?
source share