Hi Friends.......
Can you explain me the concept of near pointer?
Thanks.............
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Dec 19, 2011, 3:19 PM
In the Windows SDK header files, NEAR and FAR are ignored. In the Windows SDK, strings are usually called "LPSTRING" and the "L" means long, which means far, but the "long" part is archaich.
Note that even the latest version (Windows 3.1) of 16-bit Windows does not use real mode and therefore near and far does not apply to it either. I know that when I was developing a Windows driver for Windows 3.1 I could not figure out how to address the memory in the 640KB to 1MB range, which is generally reserved for device drivers. I don't remember for sure; it might have been that I needed to do that for a configuration program that was separate from the actual device driver. Windows protected that area of memory and it could not have protected it using real mode.
VulpesPosted Dec 19, 2011, 12:14 PM
If you don't know what a segmented memory model is, I'd read this article:
http://en.wikipedia.org/wiki/Intel_Memory_Model