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--