I so some times there is a @ symbol in from of procedure call or
variable.
What is it for ?
What is this symbol @ ?
What is this symbol @ ?
PIII450 128RAM TNT2
-
- User
- Posts: 53
- Joined: Sun Feb 15, 2004 6:04 am
- Location: Easley, SC, USA
See Pointers in the Help file.
HTHAddresses of procedures
Normally only advanced programmers need to find the address of procedures. Probably the most common reason for needing the address of a procedure is when dealing with the OS at a low-level. Some OSes allow you to specify callback or hook functions (for some operations) which get called by the OS and allows the programmer to extend the ability of the OS routine. The address of a procedure is found in a similar way to variables.
Example:
Procedure WindowCB(WindowID.l, Message.l, wParam.l, lParam.l)
; This is where the processing of your callback procedure would be performed
EndProcedure
; A special callback for the Windows OS allowing you to process window events
SetWindowCallback( @WindowCB() )
Re: What is this symbol @ ?
Its the addres of the procedure or the variable.TIGER wrote:I so some times there is a @ symbol in from of procedure call or
variable.
What is it for ?
ARGENTINA WORLD CHAMPION
Some usefull references on this topic:
viewtopic.php?p=24846#24846
http://pureproject.reelmedia.org/downlo ... nters.html
http://freak.purearea.net/help/pointer/index.html (in german)
viewtopic.php?p=24846#24846
http://pureproject.reelmedia.org/downlo ... nters.html
http://freak.purearea.net/help/pointer/index.html (in german)
quidquid Latine dictum sit altum videtur