Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 24th, 2008, 6:26 AM   #1
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 228
Rep Power: 1 Jabo is on a distinguished road
General programming question

One of my teachers in college, who I would tend to respect her point of view because she had a job in the programming field, said that it shouldn't matter what Windows OS you made your program on, it should run on other Windows platforms. For example, this was during our capstone project, there were 2 of us, and he was using VB 6.0 on XP, and I was using VB 6.0 on Vista, and I brought up the question of compatibility issues with our code on the different OSes. She said it shouldn't matter from a develpment point of view which OS you use.

I guess the only difference would be in the compiled code, right? Wouldn't different OSes have different api's and such?
Jabo is offline   Reply With Quote
Old Apr 24th, 2008, 7:41 AM   #2
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 3 Narue is on a distinguished road
Re: General programming question

>She said it shouldn't matter from a develpment point of view which OS you use.
In an ideal world it shouldn't matter, but portability is a tricky beast. For any non-trivial program, unless you code for the lowest common denominator and the OS is geared toward backward compatibility, you're going to have at least some portability issues.

>Wouldn't different OSes have different api's and such?
Yes, though let's say you use the Win32 API to write your program and you only use parts of the API that were available from Windows NT, you're solid all the way up to (and including) Vista. As long as you stick to a subset of the API that's available on all of the target systems, the differences aren't a problem. You simply don't introduce them.

So even though you're on Vista, you should program as if you were on XP and all will be well. Hopefully that's what your teacher was trying to summarize.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote
Old Apr 24th, 2008, 7:24 PM   #3
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
Re: General programming question

It's probably important to note that if you're just coding for class, the chances of you actually using any Vista-specific libraries are very low, even by accident. Your program just won't be complicated enough to need them.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 25th, 2008, 4:17 AM   #4
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 887
Rep Power: 4 lectricpharaoh will become famous soon enough
Re: General programming question

It also depends on what programming language you're using, and whether you're writing native code or not. If you're writing native Win32 code in, say, C++, then you need to be careful which API functions you call. If you're using one of the .NET languages like Visual Basic or C#, you're unlikely to run afoul of portability issues unless a) the machines in question have different framework versions (targeting v2.0 seems a safe bet these days, and v3.0 is becoming more common) or b) you are calling into native code via p/invoke (in which case the native code functions must be supported on your target OS).
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp
lectricpharaoh is offline   Reply With Quote
Old Apr 26th, 2008, 11:58 AM   #5
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 228
Rep Power: 1 Jabo is on a distinguished road
Re: General programming question

Thanks guys
Jabo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Programming Question: Memoization Versus Filling Sane Software Design and Algorithms 3 Feb 20th, 2008 7:04 PM
Some general programming questions in python MR.T Python 3 Jan 25th, 2007 10:34 PM
general programming question.. newb-programmer Visual Basic .NET 3 Jul 28th, 2005 8:14 PM
Question about Win32 Programming brokenhope C++ 15 May 3rd, 2005 7:55 PM
Windows API programming quick question vynkz C++ 4 Apr 24th, 2005 12:33 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:15 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC