Rebonjours !
Bon cete fois ci j´ai un soucis avec un fichier ini
Je n´arrive pas a determiner si il y a une variable ou pas dedans ! J´explique :
Mon ini a ceci par exemple :
[FTP]
FTP_SERVER=NomServeur
Dans mon programme pour avoir la variable de FTP_SERVER je fais comme ceci ==>
GetPrivateProfileString("FTP","FTP_SERVER","",FTP_
SERVER,sizeof(FTP_SERVER) ,"H:Conf.ini");
Maintenant j´aimerai faire une boucle comme ceci ==>
if (FTP_SERVER=="\0")
{
cout<<"....................Variable inexistante...................."<<endl;
}
else
{
cout<<"....................Variable existante...................."<<endl;
}
Mais je n´arrive pas bien a determiner la condition du if pour que ca marche
Merci d´avance a tous ceux qui repondront ;- )