Visual C++ 2008加上Feature Pack释放后到未装vc9上运行提示"应用程序配置不正确"

geoh 2008-07-02 05:28:39
环境:Visual C++ 2008 英文版 加上Visual C++ 2008 Feature Pack
使用向导创建的VisualStudio2005的界面
Debug和Release在本地都可以运行

但是只要复制到别的电脑上就提示"由于应用程序配置不正确,应用程序未能启动...."

编译条件:
Use MFC in a Shared DLL(共享库)
Multi-threaded Debug DLL (/MDd)


当然我在该文件夹放了mfc90.dll,msvcm90.dll,msvcp90.dll,msvcr90.dll,mfc90ud.dll,msvcp90d.dll,msvcr90d.dll,msvcm90d.dll
以及 *.exe.intermediate.manifest
并且此文件内容为
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC90.DebugCRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.VC90.DebugMFC' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*' />
</dependentAssembly>
</dependency>
</assembly>


就报那个错误
...全文
2405 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
jkwinjkwin 2010-03-30
  • 打赏
  • 举报
回复
你要是能知道windows 2008复制那些文件,就好啦。。。我就是搞不定2008
geoh 2008-07-16
  • 打赏
  • 举报
回复
复制到C:\Windows\WinSiS\
篷篙人 2008-07-07
  • 打赏
  • 举报
回复
复制到哪呢???
geoh 2008-07-03
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 abomber2 的回复:]
改下编译条件:
都用静态连接,

然后 重新编译 发给其他机器运行 试试,

因为 最新的 MFC9.dll xp以下的系统没有自带的
[/Quote]

静态连接释放出来的程序 4M,可以运行!,如果我想新建一个dll,我也必须使用静态,那样程序都很大了哦。


[Quote=引用 4 楼 ouyh12345 的回复:]
在开发机器上搜索vcredist_x86.exe,然后在目标机器上安装
或者做安装包
[/Quote]

无效,报新的错误,并且该错误到网上搜都搜不到。
错误为:无法定位序数 12118 于动态链接库 mfc90u.dll 上。

我用Vs自带的安装部署能保证所有的程序和dll都采用静态编译后可以运行,不过这个安装文件也达到了13M,真的很恐怖!
ouyh12345 2008-07-03
  • 打赏
  • 举报
回复
vs2005的程序会在manifest知道的目录下查找dll,自带dll不能解决问题
ouyh12345 2008-07-03
  • 打赏
  • 举报
回复
在开发机器上搜索vcredist_x86.exe,然后在目标机器上安装
或者做安装包
abomber2 2008-07-03
  • 打赏
  • 举报
回复
改下编译条件:
都用静态连接,

然后 重新编译 发给其他机器运行 试试,

因为 最新的 MFC9.dll xp以下的系统没有自带的
geoh 2008-07-03
  • 打赏
  • 举报
回复
我真的没有分数,不然就给大家分了,拜托了!
geoh 2008-07-03
  • 打赏
  • 举报
回复
上面说的是Window Server 2003
geoh 2008-07-03
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 Conry 的回复:]
看下面的帖子,说得是VS2005 ,同样适用于2008
http://topic.csdn.net/u/20080509/21/c76dd7d1-3302-4145-8442-3c9d749f460a.html
[/Quote]

不适于2008,并且我已经解决问题了
我2005编译的程序 放在2003上运行 啥都不用....
Conry 2008-07-03
  • 打赏
  • 举报
回复
看下面的帖子,说得是VS2005 ,同样适用于2008
http://topic.csdn.net/u/20080509/21/c76dd7d1-3302-4145-8442-3c9d749f460a.html
geoh 2008-07-03
  • 打赏
  • 举报
回复
解决了
是Release出来的库,你们可以看到相关dll都是发行版本的dll
只要将
C:\Windows\WinSiS下的如下文件复制出来...

├─Manifests
│ x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30411.0_x-ww_71382c73.cat
│ x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30411.0_x-ww_71382c73.manifest
│ x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30411.0_x-ww_421e9f78.cat
│ x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30411.0_x-ww_421e9f78.manifest

├─Policies
│ ├─x86_policy.9.0.Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_x-ww_b7353f75
│ │ 9.0.30411.0.cat
│ │ 9.0.30411.0.policy
│ │
│ └─x86_policy.9.0.Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_x-ww_4ee8bb30
│ 9.0.30411.0.cat
│ 9.0.30411.0.policy

├─x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30411.0_x-ww_71382c73
│ msvcm90.dll
│ msvcp90.dll
│ msvcr90.dll

└─x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30411.0_x-ww_421e9f78
mfc90.dll
mfc90u.dll
mfcm90.dll
mfcm90u.dll
这样做安装程序就好做了!
geoh 2008-07-02
  • 打赏
  • 举报
回复
请大家帮帮忙吧!谢谢了!

16,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧