Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting System Clock from VFP
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00426690
Message ID:
00427327
Vues:
21
Mike:

Thanks for the tips, especially the one about including "howto" as a search keyword when searching the MS KB! I'll definitely start using that one!




>>What code is needed to set the system's clock from VFP?
>>
>>I'm fairly sure it's a DECLARE SetSystemClock IN Kernel32-like statement
>
>You're close: it's SetSystemTime(). You need to pass it a SYSTEMTIME structure for it to fill in. But, hey, why reinvent the wheel when there's a Microsoft KB article that demonstrates using that structure >
>Also, remember that both the UT KB and the Microsoft KB are great resources for Win32 info. In the Microsoft KB, be sure to add "howto" (yes, all one word) to your search string to get "how to" articles. For instance, "howto and system and time" pulled up exactly the article you would have wanted (though I don't like the approach taken with that code; use SetSystemTime() instead).
"Problems cannot be solved at the same level of awareness that created them." - Albert Einstein

Bruce Allen
NTX Data
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform