vb.net应用程序如何与windos xp和windows 7 OS兼容? [英] how a vb.net application be compatible for both windos xp and windows 7 OS?

查看:75
本文介绍了vb.net应用程序如何与windos xp和windows 7 OS兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我有在windows xp os上开发的vb.net应用程序。现在要求是制作它兼容windows xp和windows 7 os。

根据我的初步分析,我了解到windows 7引用了不同的可执行路径(c:\ bin \ x86),而在windows xp上引用了可执行路径是(c:\ bin)。



请提供修改我的应用程序的解决方案,它可以在两种环境(64/32位操作系统)上运行?有什么方法可以使我的应用程序可以在Windows XP和Windows 7操作系统上运行?请发布你的答案,因为它非常紧急。



谢谢

Hi,


I have vb.net application which was developed on windows xp os.Now the requirement is to make it compatible for both windows xp and windows 7 os.
As per my intial analysis i understood that windows 7 is referring different executable path(c:\bin\x86)where as on windows xp the referred executable path is (c:\bin).

Please provide the solution to modify my application which can work on both environment (64/32 bit OS)? what are the ways to make my application which can be run on both windows xp and windows 7 OS? Kindly post ur answers as it is very urgent.

Thank you

推荐答案

看起来你没有将文件/文件夹放在正确的位置。

程序应安装在程序文件文件夹(或其x86版本,如果适用)中。执行程序时,不应将文件写入该目录,而应写入%temp%或%applicationdata%等中的特定文件夹(可以使用 Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)) 等)

下一期是32位/ 64位。如果您的程序不依赖于第三方组件,则无需关心。如果这些第三方组件也提供64位版本,您也无需关心。但是当第三方组件仅在32位版本中可用时,您必须将目标平台设置为x86(即32位)。
Looks like you do not place file/folders to the correct positions.
The program should be installed in the program files folder (or its x86 version, if applicable). When the program is executed, it should not write files into that directory, but to %temp% or a specific folder in %applicationdata% etc. (you can use Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) etc.)
The next issue is 32bit/64bit. If your program does not rely on third party components, you need not care for that. If those third party components are also available in 64bit versions, you also need not care. But when a third party componentis available only in 32bit version, you must set the target platform to x86 (i.e. 32bit).


这篇关于vb.net应用程序如何与windos xp和windows 7 OS兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆