Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translating VB Code with 'AddressOf'
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00688819
Message ID:
00688821
Vues:
13
VFP doesn't support callback functions. See http://fox.wikis.com/wc.dll?Wiki~CallbacksAndEvents~WIN_COM_DNA.

>Hi,
>
>I have to translate a small piece of code from VB (6 I think) to VFP 7. Everything is going just fine, except for a "weird" function called "AddressOf".
>
>here is the line where it appears:
>
>lpPrevWndProc = SetWindowLong(gHW, GWL_WNDPROC, AddressOf WindowProc)
>
>I think that the "AddressOf" function returns a pointer to the WindowProc function, which is placed a few lines below in the code. Is this for some "callback" that may be performed by the function inside the DLL to access the function inside the code i am trying to translate?
>
>Can anybody gimme a hand on how can I use the "AddressOf" thing in VFP?
>
>TIA
>
>Alonso
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform