• Welcome to Valhalla Legends Archive.
 

LP

Started by Etheran, January 07, 2003, 01:07 AM

Previous topic - Next topic

Etheran

LP
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. ;)

Eibro

Eibro of Yeti Lovers.

Yoni

#2
Yes. The notation is left over from 16-bit programming, where you had near and far pointers.

WolfSage

#3
You newb Eth....   ;D

Etheran

#4
hush!

Zakath

#5
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.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Etheran

win32.hlp is very informative.  I wouldn't have been able to make a window with asm without it! ;D

WolfSage

#7
I new it meant long pointer. But that's it.  ;)

Etheran

#8
near and far have to do with memory segments?

Eibro

near pointer = 16 bit = 65536 address limitation
far pointer = 32* bit = 2^32 address limitation
Eibro of Yeti Lovers.

Grok

#10
Quotenear pointer = 16 bit = 65536 address limitation
far pointer = 32* bit = 2^32 address limitation

What would a 64-bit implmentation be?

far far pointer = galaxy^long^long = ago

Mesiah / haiseM

#11
lol

(sorry just had to post that, delete this if u want)
]HighBrow Innovations
Coming soon...

AIM Online Status: 

Arta

#12
lol :)

Banana fanna fo fanna

#13
How about a FFAR pointer - fuckin far pointer.