Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetTimer Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01145221
Message ID:
01145246
Vues:
25
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform