Solved

Difference between W95/98 and NT

Posted on 1999-01-25
5
153 Views
Last Modified: 2010-04-16
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
Comment
Question by:gavinpat
  • 3
  • 2
5 Comments
 
LVL 3

Accepted Solution

by:
PinTail earned 50 total points
ID: 1185078
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
 

Author Comment

by:gavinpat
ID: 1185079
So what makes NT a more stable platform?
0
 
LVL 3

Expert Comment

by:PinTail
ID: 1185080
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
 

Author Comment

by:gavinpat
ID: 1185081
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
 
LVL 3

Expert Comment

by:PinTail
ID: 1185082
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C++ assignment question 7 129
C++ get user from AD  (VS6) 7 48
IdTCPClient1->Disconnect(); not working 3 49
computer science syllabus 3 52
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now