Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Difference between W95/98 and NT

What are the main differences between programming for windows 95 and NT? In visual c++ I don't seem to have to do anything other than specify which platform I want my executable for. I would like to train myself into NT, do I have to make any major changes to my programming style
0
gavinpat
Asked:
gavinpat
  • 3
  • 2
1 Solution
 
PinTailCommented:
In general any program written for 32bit Windows (Win95/Win98) will work under NT.  There are some API differences which may cause unexpected results ( you can usually see these differences by checking the help for a particular API function.)  In general the NT API has more functionality, especially related to Security, Networking, and Process and Thread control.


0
 
gavinpatAuthor Commented:
So what makes NT a more stable platform?
0
 
PinTailCommented:
Well, I think the main thing is that NT has dedicated process address space.  This means that a well behaved application has no way to corrupt another applications memory.  The reality is a little different since it is possible to write a program which 'injects' itself into another processes address space, but you would have do do this sort of thing intentionaly.
0
 
gavinpatAuthor Commented:
Sounds good, does that mean that the heap is divided into individual sections for each process then? I thought that windows 95 already had this, well thanks for the input, I will have to go and read more on this obviously.
0
 
PinTailCommented:
Yes, the heap is process specific, which is why if create a process, and are really carefull, you can step into the C-Runtime code and see a call to GetProcessHeap() and HeapAlloc()
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now