Page 1 of 1

XP vs Vista, program compatibility

Posted: Mon Jan 14, 2008 1:06 am
by Patrickh
I made an app, which works for all vista users ive sent it to. however, it crashes on startup for any xp users i send it to. The app is made in VB08.
Any ideas how i should build it so that it will work for both operating systems?
thanks in advance.

Posted: Tue Jan 29, 2008 3:17 pm
by Patrickh
I'm bumping this because someone here must know... sorry if it's a newbish question, but that should just make it easier to answer. Any suggestions/questions about the situation would be appreciated.

Posted: Tue Jan 29, 2008 3:45 pm
by dos mes
08 languages use .net framework 3.0 (maybe 3.5?). Most XP users would only be running 2.0...if even. I suggest that when starting a new project, at the top right of the project dialog box, change the framework to 2.0.

For now, they would have to download and install the required framework.

Posted: Tue Jan 29, 2008 5:20 pm
by Patrickh
dos mes wrote:08 languages use .net framework 3.0 (maybe 3.5?). Most XP users would only be running 2.0...if even. I suggest that when starting a new project, at the top right of the project dialog box, change the framework to 2.0.

For now, they would have to download and install the required framework.
thanks for the response dos mes. would there be a way of salvaging my project to work with 2.0?
hmm, just tried creating a new project, and i didn't see any framework options. Where and how can i set them? if there is a website somewhere that helps with this, please drop me a link so i wont be bothering you guys anymore... thanks for the help i really want my programs to be compatible, or whats the point...

Posted: Tue Jan 29, 2008 7:30 pm
by dos mes
Image
As for salvaging, you could always copy your controls and source over into a new project created with lower level framework.

Posted: Tue Jan 29, 2008 8:15 pm
by Patrickh
:shock:
Image

well this is unfortunate... to google!

edit: found this pic online:
Image
do i not have the combo box because im using express edition or something?

Posted: Tue Jan 29, 2008 9:17 pm
by OwnZ joO
You don't have to start a new project, you just go into the project properties for each project and it will have an option of what version of the framework to target.

Posted: Tue Jan 29, 2008 10:02 pm
by Patrickh
Yes! I finally found the framework settings, thanks guys. For future reference, click your project properties and go to the compile section. At the bottom the is a button called Advanced Compiler Settings. Click that button, and in the dialog it opens is a combobox containing the framework to which you want to build.

Posted: Wed Jan 30, 2008 7:04 am
by Patrickssj6
Common knowledge. :wink:

Posted: Wed Jan 30, 2008 4:54 pm
by Patrickh
Patrickssj6 wrote:Common knowledge. :wink:
Probably to most programmers, but i just do it on and off, can't even really call it a hobby...

also: i changed the framework to 2.0, saved, reloaded the project, built it, and gave it to two xp users, crashed for both. gave it to a vista user, worked fine. I'll check if they don't have 2.0, but that would surprise me. Is there something I'm missing?

Posted: Thu Jan 31, 2008 7:55 am
by OwnZ joO
I think I remember seeing an article on code project about targeting 2.0, and you had to get rid of some references in the project. Also make sure you have every project in your solution targeting 2.0(if you have multiple projects). So try searching on www.thecodeproject.com and hopefully you'll find it.