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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sam HobbsRank #107 · 20.5K reputationPosted Dec 19, 2011, 10:19 AM EST
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.
VulpesRank #55 · 29.2K reputationPosted Dec 19, 2011, 7:14 AM EST
If you don't know what a segmented memory model is, I'd read this article:
http://en.wikipedia.org/wiki/Intel_Memory_Model