用于处理长 path/filename in I/O 操作的编译标志 in Visual Studio
Compilation flag to handle long path/filename in I/O operations in Visual Studio
目前 Visual Studio I/O 操作可以处理的输入 file/directory 的长度有限制(不确定是 180 还是 260 或类似的东西)。
我知道有一个可能的编译标志(希望在 VS2015 中得到支持)可以帮助解决这个问题并增加输入的最大可接受长度。
感谢您帮助确定正确的标志。
不确定 32 位和 64 位编译在这里是否也有任何影响。
尝试以下操作:
Local Computer Policy -> Computer Configuration -> Administrative
Templates -> System -> Filesystem -> Set "Enable Win32 long paths" to
Enabled
另外:
Starting in Windows 10, version 1607, MAX_PATH limitations have been removed from common Win32 file and directory functions. However, you must opt-in to the new behavior.
目前 Visual Studio I/O 操作可以处理的输入 file/directory 的长度有限制(不确定是 180 还是 260 或类似的东西)。 我知道有一个可能的编译标志(希望在 VS2015 中得到支持)可以帮助解决这个问题并增加输入的最大可接受长度。
感谢您帮助确定正确的标志。
不确定 32 位和 64 位编译在这里是否也有任何影响。
尝试以下操作:
Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem -> Set "Enable Win32 long paths" to Enabled
另外:
Starting in Windows 10, version 1607, MAX_PATH limitations have been removed from common Win32 file and directory functions. However, you must opt-in to the new behavior.