jeudi 30 janvier 2014

[Help] error MVS2013 topic




What's the problem?
Source is fully functional, but here comes this error:

Code:


IntelliSense: no operator "! =" Matches these operands
operand types: std :: ofstream! = int


Here is the code I have in the source

Code:


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;
        }
}


Once again, I use a Visual Studio 2013

Error highlighted in red





Aucun commentaire:

Enregistrer un commentaire