已过时的函数Obsolete Functions

某些库函数已过时,已有最新的等效函数。Certain library functions are obsolete and have more recent equivalents. 我们建议改用更新版本。We recommend you change these to the updated versions. 已从 CRT 中删除其他过时函数。Other obsolete functions have been removed from the CRT. 本主题列出了已弃用的过时函数以及在 Visual Studio 特定版本中删除的函数。This topic lists the functions deprecated as obsolete, and the functions removed in a particular version of Visual Studio.

在 Visual Studio 2015 中已弃用(过时)Deprecated as obsolete in Visual Studio 2015

已过时的函数Obsolete function 替代项Alternative
is_wctype iswctypeiswctype
_loaddll LoadLibraryLoadLibraryExLoadPackagedLibraryLoadLibrary, LoadLibraryEx, or LoadPackagedLibrary
_unloaddll FreeLibraryFreeLibrary
_getdllprocaddr GetProcAddressGetProcAddress
_seterrormode SetErrorModeSetErrorMode
_beep 提示音Beep
_sleep 休眠Sleep
_getsystime GetLocalTimeGetLocalTime
_setsystime SetLocalTimeSetLocalTime

已从 Visual Studio 2015 的 CRT 中删除Removed from the CRT in Visual Studio 2015

已过时的函数Obsolete function 替代项Alternative
_cgets、_cgetws_cgets, _cgetws _cgets_s、_cgetws_s_cgets_s, _cgetws_s
gets、_getwsgets, _getws gets_s、_getws_sgets_s, _getws_s
_get_output_format_get_output_format None
_heapadd_heapadd None
_heapset_heapset None
inp、inpwinp, inpw None
_inp、_inpw、_inpd_inp, _inpw, _inpd None
outp、outpwoutp, outpw None
_outp、_outpw、_outpd_outp, _outpw, _outpd None
_set_output_format_set_output_format None

已从 Visual Studio 早期版本的 CRT 中删除Removed from the CRT in earlier versions of Visual Studio

_lock_lock

_unlock_unlock