我使用Visual Studio 2008和Visual C++语言创建了一个wn32项目,它使用ws2_32.lib库并以Release模式编译。在同一台电脑上运行良好,但当我将exe文件复制到其他没有安装Visual Studio的计算机上时,它无法运行。出现以下错误信息:“This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.” 然而,如果我使用DEV C++编译我的应用程序,则生成的可执行文件更大(738KB),与Visual Studio 2008可执行文件(9.5 KB)相比。但是,DEV C++可执行文件可以在其他计算机上运行。我已将ws2_32.lib库添加到项目的链接器属性中,在Additional Dependencies字段中。如何修复此问题以使其与Visual Studio 2008兼容? 我的代码如下:http://www.stan.com.mx/yupi/udpserver.cpp