Valhalla Legends Forums Archive | General Programming | LP

AuthorMessageTime
Etheran
I am very new to the windows api and I'm wondering what lp stands for (e.g. lpsz).  I've made the assumption that it stands for long pointer (lpsz would be long pointer string zero) but I'm not sure.  I can't seem to find any confirmation so I'm using these forums. ;)
January 7, 2003, 7:07 AM
Eibro
Yep, you're correct.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw98bk/html/variablenameshungariannotation.asp
January 7, 2003, 7:57 AM
Yoni
Yes. The notation is left over from 16-bit programming, where you had near and far pointers.
January 7, 2003, 10:13 AM
WolfSage
You newb Eth....   ;D
January 8, 2003, 7:12 PM
Etheran
hush!
January 9, 2003, 1:00 AM
Zakath
Wolf, that wasn't nice. ::)

I bet you didn't know that either!

If you look carefully through the API, you'll still occasionally see something declared as a FAR pointer. This is redundant at this point, but as Yoni said, is a holdover from the time when products still had to be written for 16-bit Windows.

Normally, all pointers now on a standard windows machine are 4 bytes.
January 9, 2003, 1:01 AM
Etheran
win32.hlp is very informative.  I wouldn't have been able to make a window with asm without it! ;D
January 9, 2003, 1:05 AM
WolfSage
I new it meant long pointer. But that's it.  ;)
January 9, 2003, 6:14 PM
Etheran
near and far have to do with memory segments?
January 9, 2003, 7:28 PM
Eibro
near pointer = 16 bit = 65536 address limitation
far pointer = 32* bit = 2^32 address limitation
January 9, 2003, 10:10 PM
Grok
[quote]
near pointer = 16 bit = 65536 address limitation
far pointer = 32* bit = 2^32 address limitation
[/quote]

What would a 64-bit implmentation be?

far far pointer = galaxy^long^long = ago
January 10, 2003, 2:59 PM
MesiaH
lol

(sorry just had to post that, delete this if u want)
January 10, 2003, 3:57 PM
Arta
lol :)
January 10, 2003, 7:30 PM
St0rm.iD
How about a FFAR pointer - fuckin far pointer.
January 10, 2003, 7:48 PM

Search