Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetTimer Problem
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01145221
Message ID:
01145246
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform