Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointer to the callback function
Message
 
To
24/03/2009 15:13:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows 2008 Server
Miscellaneous
Thread ID:
01391073
Message ID:
01391147
Views:
60
>Hi
>
>I don't know about callback, but I found this once regarding pointer, and did not make search on it
>
>The pointer is simply a memory address (integer) for a variable or object
>
>Try this, and let me know if that works with you.
>
>Declare INTEGER VarPtr IN "msvbvm50.dll" As "VarStrToPtr" String @var
>Declare INTEGER VarPtr IN "msvbvm50.dll" As "VarNumToPtr" Integer @var
>Declare INTEGER VarPtr IN "msvbvm50.dll" As "VarObjToPtr" Object @var
>
>cName = "S"
>ptr = VarStrToPtr(cName)
>? ptr && 57831008
>
>nNum = 1000
>ptr = VarNumToPtr(nNum)
>? ptr &&  1241216
>
>oObj = createobject("Session")
>ptr = VarObjToPtr(oObj)
>? ptr
>
Yeah, but you can't use:
ptr = Var...ToPtr("SomeFunctionName")
? ptr
isn't it?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform