[C++ Error] formlog.cpp(46): E2034 Cannot convert 'bool' to 'FILE *'
Publicado por Adrian JUdas (2 intervenciones) el 22/10/2020 11:36:43
Alguien encuentra el error en esta fragmento, qie yo me estoy dejando la vista
Error que da el compiler
[C++ Error] formlog.cpp(46): E2034 Cannot convert 'bool' to 'FILE *'
[C++ Warning] formlog.cpp(46): W8060 Possibly incorrect assignment
No consigo encontar e fallo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
void leefich(AnsiString fichero)
{
FILE *in;
char c;
char file[30];
String Memo;
strcpy(file,fichero.c_str());
if ( in = fopen(&file,"r") == NULL)
{
ShowMessage("Fallo al leer el fichero de entrada");
return;
}
//while (fread (&file,1,1,in) != NULL)
fclose(in);
}
Error que da el compiler
[C++ Error] formlog.cpp(46): E2034 Cannot convert 'bool' to 'FILE *'
[C++ Warning] formlog.cpp(46): W8060 Possibly incorrect assignment
No consigo encontar e fallo
Valora esta pregunta


0