用VC6.0可以运行,但用vs2010就不行,出现以下情况。

如题所述

The Microsoft run-time library supports American National Standards Institute (ANSI) C and UNIX C. In this documentation, references to UNIX include XENIX, other UNIX-like systems, and the POSIX subsystem in Windows 2000, Windows XP, Windows Server 2003, and Windows Vista. The description of each run-time library routine includes a compatibility section for the following targets.

ANSI

ISO C 95

Windows 2000

Windows XP

Windows Server 2003

Windows Vista

All run-time library routines included with this product are compatible with the Windows API.

这是msdn中有关C运行库函数兼容性的一段说明,不保证兼容win98。vc6是98年的,可以说是基于win98的,所以_beginthread函数可能与之不兼容。尝试用api替代(CreateThread),或者试试_beginthreadex,或者参考下vc6的msdn。
温馨提示:答案为网友推荐,仅供参考
相似回答