What's the problem?
Source is fully functional, but here comes this error:
Here is the code I have in the source
Once again, I use a Visual Studio 2013
Error highlighted in red
Source is fully functional, but here comes this error:
Code:
IntelliSense: no operator "! =" Matches these operands
operand types: std :: ofstream! = intCode:
void __cdecl cTools::Log(const char *fmt, ...)
{
if(ofile != NULL)
{
if(!fmt)
{
return;
}
va_list va_alist;
char logbuf[256] = {0};
va_start (va_alist, fmt);
_vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), fmt, va_alist);
va_end (va_alist);
ofile << logbuf << endl;
}
}Error highlighted in red
Aucun commentaire:
Enregistrer un commentaire