Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keep the ex last date and time
Message
Information générale
Forum:
Visual C++
Catégorie:
Microsoft Foundation Classes
Divers
Thread ID:
00843619
Message ID:
00844013
Vues:
19
This message has been marked as the solution to the initial question of the thread.
You can use the GetFileTime API to read the original timestamp and SetFileTime to set it back to that timestamp after you are done with the file.

HTH

>I am using CFile files:
>
>
CFile myFile;
>myFile.Open(…);
>
>I modify the file here
>
>myFile.Close();
>
>When I modify myFile the “Last Date Modified” is changed to the time that modifications were done. How can I prevent that? I don’t want to change this date and time. Actually, I don’t want to show that I have changed the content of myFile.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform