Deprecated methods are replaced (warning MSVC C4996 is suppressed).