首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

VC2005的应用程序,在XP下运行正常,在windows2003的服务器上就不能运行,该怎么处理

2012-04-17 
VC2005的应用程序,在XP下运行正常,在windows2003的服务器上就不能运行一点程序就报:This application has

VC2005的应用程序,在XP下运行正常,在windows2003的服务器上就不能运行
一点程序就报:This application has failed to start because the application configuration is incorrect.Reinstalling the application may fix this problem.
请问下,这是怎么回事呀?
程序用到MFC了,有两个线程。

[解决办法]
应用程序启动失败,因为其配置不正确。重新安装或许会解决此问题。
mfc的工程请使用静态编译版本
[解决办法]
可能是些dll的版本不对,如crt库。
看看你manifest里用了什么版本号,然后看看windows2003上有没有那些dll,没有就自己带上。
[解决办法]

C/C++ code
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">  <dependency>    <dependentAssembly>      <assemblyIdentity type="win32" name="Microsoft.VC80.CRT" version="8.0.50727.762" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>    </dependentAssembly>  </dependency></assembly> 

热点排行