Execution en visual studio 6.0
Bonjour,
j'ai un pb avec visual studio 6.0, j'ai cree un fichier .txt ou j'ai stocker mes infos, et j'ai fait un appel du fichier sur mon programme, mais il m'a afficher le msg d'erreur suivant:
Debug error
program test.exe
rutime error
(press retry to debug the application)
s'agit il de quoi ??
j'ai un pb avec visual studio 6.0, j'ai cree un fichier .txt ou j'ai stocker mes infos, et j'ai fait un appel du fichier sur mon programme, mais il m'a afficher le msg d'erreur suivant:
Debug error
program test.exe
rutime error
(press retry to debug the application)
s'agit il de quoi ??
Configuration: Windows Vista Firefox 3.0.14
2 réponses
-
Bonjour,
Je ne comprends pas ce que tu veux faire.
C'est quoi ce programme test.exe ? et comment fais-tu appel à ton fichier .txt ?
-
test c le nom du workspace, et l'appel est fait par :
void CClient::lire_fichier()
{
char *nom_fic="D:\\abc.txt";
FILE *fic;
fic = fopen(nom_fic,"r");
if (!fic){
printf("erreur");
exit(-1);
}
else{
fscanf(fic,"\n%d,\t%s, \t%s, \t%s, \t%s, \t%d, \t%d, \t%f",&num_cli,&num_cli, nom, prenom, adr, tel, &code, &n_carte, &capital);
printf("\n%d,\t%s, \t%s, \t%s, \t%s, \t%d, \t%d, \t%f",&num_cli,&num_cli, nom, prenom, adr, tel, &code, &n_carte, &capital);
}