Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WritePrivateProfileString
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00128327
Message ID:
00128838
Vues:
32
Erik
>
>0 is success
>1 returns "Win32 API: Incorrect function."

First, thanks for the kind words about my class. The following is from the Win32 SDK help file.

"Return Value

If the function successfully copies the string to the initialization file, the return value is TRUE.

If the function fails, or if it flushes the cached version of the most recently accessed initialization file, the return value is FALSE. To get extended error information, call GetLastError."

For as long as I can remember 0 = FALSE. Technically, any non-zero value is equal to TRUE. However, consistently it seems to be 1 in Windows.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform