Référence MSDN
Remplace:
GetPrivateProfileString("GESTION_PROFIL", "STATUE","",l_buffer,1024,FILE);
par
GetPrivateProfileString("GESTION_PROFIL", "STATUE",NULL,l_buffer,1024,FILE);
Pour voir...
Déjà au départ cela fait peur
Note This function is provided only for compatibility with 16-bit Windows-based applications. Applications should store initialization information in the registry.
Sinon on dirait un problème de "\n" ou "\r\n" ou autre dans le même style.
Je ne sais pas du tout comment fonctionne GetPrivateProfileString, ce n’est pas possible d’utiliser une autre fonction plus récente pour écrire/lire dans un fichier ?
Partager