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:
00601354
Message ID:
00601568
Vues:
21
>>>I'm using WritePrivateProfileString to update an existing ini file and it works fine. I can use GetPrivateProfileString and get the changed key value (or whatever) I just wrote.
>>>
>>>However, if another application reads that ini file before my program quits, the changes are not visible. After I quit my program the changes are visible to everyone. Anyone know how to flush the Windows api buffer, or whatever is holding the new changes?
>>
>>What version of Windows you're expiriensing this problem under? Under Win2k Pro changes became visible to another application right away. You can try
? WritePrivateProfileString(Null, Null, Null, "Myini.ini")
>********
>Thanks Sergey, that worked for Win98 also. Is that documented somewhere or did you just dream it up?


It's documented in MSDN library for win.ini file.

>Thanks for all the help you give on this list (I'm sure I speak for many other people)

I'm glad to be of help.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform