Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Catalog of API routines
Message
 
 
To
13/06/1998 13:10:35
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00107091
Message ID:
00107923
Views:
17
Vlad,

LP = long pointer which is moot under Win32 because all pointers are 32bit long pointers. In Win16 days you could have pointers which were just 16 bit pointers into into the code's single DS (data segment). The Infoviewer in VC++ can point you at these "base" kind of declarations.

>Ok, I got it now! :) The "*" indicates a pointer, but if the type is LP..., then it is probably a macro for a pointer type (ex: LPWORD is in fact a replacement for WORD*). So, all LP... types are pointer types, in fact. Also, all P... are pointer types.
>So, the convention was followed all the time, only that LP... types hide the "*". (But the "*" is always there, because it's part of the C language).
>
>Special care must be given to types like LP...*. These are pointer to pointer types. Ex: LPWORD* translates to WORD**, pointer to pointer to WORD.
>
>I wonder why these conventions are not explained clearly in the doc... :(
>
>Vlad
>
>>Sorry if I was a little vague. I mention the convention of using the pointer symbol ("*") to indicate that a pointer (reference) was used. They just used "lp". Then again, I really shouldn't have called it a convention, not being too familar with C++ .
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform