![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Not a user?
Join Date: Sep 2007
Posts: 245
Rep Power: 1
![]() |
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? |
|
|
|
|
|
#2 |
|
Professional Programmer
![]() Join Date: Sep 2005
Posts: 419
Rep Power: 3
![]() |
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. |
|
|
|
|
|
#3 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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.
|
|
|
|
|
|
#4 |
|
Caffeinated Neural Net
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 922
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#5 |
|
Not a user?
Join Date: Sep 2007
Posts: 245
Rep Power: 1
![]() |
Re: General programming question
Thanks guys
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |