Click here to Skip to main content
15,889,822 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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
Posted
Updated 27-Jun-12 4:00am
v2

1 solution

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).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900