如果您计划将程序移植到 UNIX,请遵循以下准则:If you plan to port your programs to UNIX, follow these guidelines:

  • 不要从 SYS 子目录中移除标头文件。Do not remove header files from the SYS subdirectory. 仅当您不打算将程序传输到 UNIX 时,可以将 SYS 标头文件放置到其他位置。You can place the SYS header files elsewhere only if you do not plan to transport your programs to UNIX.

  • 在采用将路径和文件名表示为参数的字符串的例程中使用与 UNIX 兼容的路径分隔符。Use the UNIX-compatible path delimiter in routines that take strings representing paths and filenames as arguments. 为此,UNIX 仅支持正斜杠 (/),而 Win32 操作系统同时支持反斜杠 (\) 和正斜杠 (/)。UNIX supports only the forward slash (/) for this purpose, whereas Win32 operating systems support both the backslash (\) and the forward slash (/). 因此,本文档将与 UNIX 兼容的正斜杠用作路径分隔符,例如在 #include 语句中。Thus this documentation uses UNIX-compatible forward slashes as path delimiters in #include statements, for example. (但是,Windows 操作系统命令外壳 (CMD.EXE) 不支持在从命令提示符处输入的命令中使用正斜杠。)(However, the Windows operating system command shell, CMD.EXE, does not support the forward slash in commands entered at the command prompt.)

  • 使用在 UNIX 中正常运行的路径和文件名(区分大小写)。Use paths and filenames that work correctly in UNIX, which is case sensitive. Win32 操作系统中的文件分配表 (FAT) 文件系统不区分大小写;NTFS 文件系统保留目录列表的大小写形式,但在文件搜索和其他系统操作中将忽略大小写。The file allocation table (FAT) file system in Win32 operating systems is not case sensitive; the NTFS file system preserves case for directory listings but ignores case in file searches and other system operations.


    在此版本的 Visual C++ 中,已从函数描述中删除 UNIX 兼容性信息。In this version of Visual C++, UNIX compatibility information has been removed from the function descriptions.

另请参阅See Also