Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pointer to the callback function
Message
 
À
24/03/2009 15:13:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows 2008 Server
Divers
Thread ID:
01391073
Message ID:
01391147
Vues:
61
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform