VFP doesn't support callback functions nativelly. Check
VFP2C32 File #
28338 and
vfp.fll - Callback for vfp File #
20453. Take a look also at
A form independent, enhanced timer fll File #
9315>i want to use SetTimer to make a windows timer.I declare like this
>
>DECLARE long SetTimer IN user32 hwnd long,nIDEvent long,uElapse long,LpTimerFine long
>
>the problem is the forth parameter that is the address of a function that for each time muse be called.
>
>i call that like this :
>
>THISFORM.thandle=SetTimer(THISFORM.HWND,1,1,THISFORM.alarm())
>IF ThisForm.thandle=0
>MESSAGEBOX('error')
>ENDIF
>
>there is no error but the alarm() method hint just one time
>
--sb--