void Ccustom::log(CString val) ofstream ofstream_object; ofstream_object.open(ApplicationPath, std::ios_base::app); Instance=(Ccustom*)pObject; CStringA stime(currentTime()); logtime=stime.AllocSysString(); logmsg=val.AllocSysString(); Instance->Fire_Log(logtime,logmsg); SysFreeString(logtime); SysFreeString(logmsg); CString logInfo; logInfo.Format("%s : %s",stime,val); ofstream_object<<logInfo <<'\n'; ofstream_object.close(); val.Empty(); logInfo.Empty(); stime.Empty();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)