以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 C/C++编程思想 』 (http://bbs.xml.org.cn/list.asp?boardid=61) ---- 用VC对VISTA编程笔记-1 (http://bbs.xml.org.cn/dispbbs.asp?boardid=61&rootid=&id=73803) |
-- 作者:卷积内核 -- 发布时间:4/2/2009 3:35:00 PM -- 用VC对VISTA编程笔记-1 用VC++ 6.0, VC++.NET 2003编译的程序能在XP下运行成功,在Vista下面不能运行.因为不会打安装包,所以不知道是不是打了安装包就可以在Vista下面运行了.但是很确定的一点是,Vista不像XP一样,复制可执行文件及相关动态链接库到system32文件夹就可以运行. Manifests are XML files that accompany and describe side-by-side assemblies or isolated application. Manifests uniquely identify the assembly through the assembly’s <assemblyIdentity> element. They contain information used for building and activation, such as COM classes, interfaces, and type libraries, that has traditionally been stored in the registry. Manifests also specify the files that make the assembly and my include Windows classes if the assembly author wants them to be versioned. Side-by-side assemblies are not registered on the system, but are available to applications and other assemblies on the system that specify dependencies in manifest files.
« Isolated applications can be designed so that they always run using the same assembly versions with which they were built and tested. « Isolated applications can use functionality provided by the side-by-side assemblies made available by Microsoft. For more information, see Supported Microsoft Side-by-side Assemblies. « Isolated applications are not tied to the shipping schedule of their side-by-side assemblies because applications and administrators can update the configuration after deployment without having to reinstall the application. This would not apply in the case where only one version of the assembly is being made available. « A fully isolated application may be installed by using the xcopy command. Windows Installer can also be used to install an isolated application without impact to the registry. For more information, see Installation of Win32 Assemblies. |
-- 作者:卷积内核 -- 发布时间:4/2/2009 3:36:00 PM -- 用VC对VISTA编程笔记-2 择条翻译并解释自己的理解.
« 独立应用程序可以永远使用在设计及测试时使用的配件.(这可以避免由于配件更新带来的一系列不兼容或升级问题.比如DLL Hell.) « 独立应用程序可以享用微软制造之并行配件组所提供的功能和性能. « 独立应用程序不会被并行配件组的交货日程所限制,因为程序和管理员可以在完成部署之后更新配置,而不用重新安装应用程序.而如果程序中指定了只能用某一版本的配件,则不能进行这种更新. « 把一个完全独立的应用程序拷贝过来就等于安装了它. (这条是独立应用程序的根本优越性.以前的Windows程序必须在系统注册,安装就是注册,卸载就是注销.现在不用搞那么多名堂,想用就直接复制过来双击就可以运行了.这样系统省事,用户方便.这应该是Windows从Linux中吸取的长处,应该算是一大改进吧.) Windows Installer也可以用于安装一个独立应用程序,但它再也不需要注册表进行配置. |
-- 作者:卷积内核 -- 发布时间:4/2/2009 3:37:00 PM -- 回到问题.程序运行时提示”side-by-side configuration is incorrect”.怎么解决呢?现在应该确定一点是,这个错误是动态链接库没接上去造成的.正规的办法肯定是写清单来进行部署,那就要用XML语言,那又不知道什么时候能弄好了.注意到Visual Studio 2008的SDK带了一个叫Manifest Generation and Editing Tool的工具,看起来好象很实用的样子,但是好象还是没那么简单. 继续查,查到台湾MSDN上有许多关于部署的文章,比较适合入门,要继续看一下. (摘自http://www.vckbase.com/document/viewdoc/?id=1744) 这一般是项目的文件被放在FAT/FAT32分区上导致的, 解决方法是把它们都移动到NTFS分区上, 或者把“项目属性|Manifest Tool|General|Use FAT32 Work-around”设为yes。
x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f.cat x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f.manifest 8.0.50727.762.cat 8.0.50727.762.policy |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
62.500ms |